Boost C++ Libraries: Ticket #3574: Miscompile of Phoenix is_std_map and friends with -D_GLIBCXX_DEBUG https://svn.boost.org/trac10/ticket/3574 <p> The attached test fails to compile with -D_GLIBCXX_DEBUG: </p> <p> include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:38: error: wrong number of template arguments (4, should be 1) include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:28: error: provided for ‘template&lt;class T&gt; struct boost::is_std_map’ include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:38: error: expected unqualified-id before ‘&gt;’ token include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:53: error: wrong number of template arguments (4, should be 1) include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:43: error: provided for ‘template&lt;class T&gt; struct boost::is_std_multimap’ include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:53: error: expected unqualified-id before ‘&gt;’ token </p> <p> I believe the problem is with the forward-declaration of std::map and friends. If I preprocess and remove the forward declarations, it works. </p> <p> Similar problems exist with is_std_set and is_std_list, at least. Probably all the tests for standard containers are broken. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3574 Trac 1.4.3 dag@… Wed, 28 Oct 2009 20:35:32 GMT attachment set https://svn.boost.org/trac10/ticket/3574 https://svn.boost.org/trac10/ticket/3574 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cc</span> </li> </ul> <p> Initial testcase. Compile with g++ -D_GLIBCXX_DEBUG </p> Ticket anonymous Wed, 28 Oct 2009 20:37:00 GMT component, severity changed; owner set https://svn.boost.org/trac10/ticket/3574#comment:1 https://svn.boost.org/trac10/ticket/3574#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Joel de Guzman</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">spirit</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Problem</span> → <span class="trac-field-new">Regression</span> </li> </ul> Ticket Steven Watanabe Thu, 29 Oct 2009 16:09:01 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3574#comment:2 https://svn.boost.org/trac10/ticket/3574#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> This has already been fixed. See <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3081" title="#3081: Bugs: Ambiguities compiling Phoenix code with _GLIBCXX_DEBUG (closed: fixed)">#3081</a>. </p> Ticket