[Boost-bugs] [Boost C++ Libraries] #3574: Miscompile of Phoenix is_std_map and friends with -D_GLIBCXX_DEBUG

Subject: [Boost-bugs] [Boost C++ Libraries] #3574: Miscompile of Phoenix is_std_map and friends with -D_GLIBCXX_DEBUG
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-28 20:33:57


#3574: Miscompile of Phoenix is_std_map and friends with -D_GLIBCXX_DEBUG
--------------------------+-------------------------------------------------
 Reporter: dag@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: None
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 The attached test fails to compile with -D_GLIBCXX_DEBUG:

 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<class T> struct boost::is_std_map’
 include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:38:
 error: expected unqualified-id before ‘>’ 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<class T> struct boost::is_std_multimap’
 include/boost/spirit/home/phoenix/stl/algorithm/detail/is_std_map.hpp:53:
 error: expected unqualified-id before ‘>’ token

 I believe the problem is with the forward-declaration of std::map and
 friends. If I preprocess and remove the forward declarations, it works.

 Similar problems exist with is_std_set and is_std_list, at least.
 Probably all the tests for standard containers are broken.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3574>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC