[Bug c++/81204] New: [7/8 Regression] Rejects boost headers

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 26 08:58:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81204

            Bug ID: 81204
           Summary: [7/8 Regression] Rejects boost headers
           Product: gcc
           Version: 7.1.1
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

Created attachment 41629
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41629&action=edit
unreduced unincluded testcase

Works with G++6, fails with G++7 with

In file included from
/usr/include/boost/geometry/geometries/helper_geometry.hpp:21:0,
                 from
/usr/include/boost/geometry/algorithms/detail/disjoint/point_point.hpp:41,
                 from
/usr/include/boost/geometry/algorithms/detail/equals/point_point.hpp:24,
                 from
/usr/include/boost/geometry/strategies/cartesian/intersection.hpp:29,
                 from
/usr/include/boost/geometry/strategies/intersection_strategies.hpp:28,
                 from /usr/include/boost/geometry/strategies/strategies.hpp:37,
                 from /usr/include/boost/geometry/geometry.hpp:50,
                 from /usr/include/boost/geometry.hpp:17,
                 from test.cpp:9:
/usr/include/boost/geometry/geometries/point.hpp: In static member function
‘static void
boost::geometry::traits::access<boost::geometry::model::point<CoordinateType,
DimensionCount, CoordinateSystem>,
Dimension>::set(boost::geometry::model::point<CoordinateType, DimensionCount,
CoordinateSystem>&, const CoordinateType&)’:
/usr/include/boost/geometry/geometries/point.hpp:290:33: error: type/value
mismatch at argument 1 in template parameter list for ‘template<class _Key,
class _Compare, class _Alloc> class std::set’
/usr/include/boost/geometry/geometries/point.hpp:290:33: note:   expected a
type, got ‘Dimension’
/usr/include/boost/geometry/geometries/point.hpp:290:33: error: template
argument 2 is invalid
/usr/include/boost/geometry/geometries/point.hpp:290:33: error: template
argument 3 is invalid
In file included from
/usr/include/boost/geometry/algorithms/detail/normalize.hpp:27:0,
                 from
/usr/include/boost/geometry/algorithms/detail/disjoint/point_point.hpp:45,
                 from
/usr/include/boost/geometry/algorithms/detail/equals/point_point.hpp:24,
                 from
/usr/include/boost/geometry/strategies/cartesian/intersection.hpp:29,
                 from
/usr/include/boost/geometry/strategies/intersection_strategies.hpp:28,
                 from /usr/include/boost/geometry/strategies/strategies.hpp:37,
                 from /usr/include/boost/geometry/geometry.hpp:50,
                 from /usr/include/boost/geometry.hpp:17,
                 from test.cpp:9:
/usr/include/boost/geometry/views/detail/indexed_point_view.hpp: In static
member function ‘static void
boost::geometry::traits::access<boost::geometry::detail::indexed_point_view<Geometry,
Index>, Dimension>::set(boost::geometry::detail::indexed_point_view<Geometry,
Index>&, const coordinate_type&)’:
/usr/include/boost/geometry/views/detail/indexed_point_view.hpp:113:33: error:
type/value mismatch at argument 1 in template parameter list for
‘template<class _Key, class _Compare, class _Alloc> class std::set’
...


More information about the Gcc-bugs mailing list