From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B3A5A3854834; Sun, 29 May 2022 13:13:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3A5A3854834 From: "deco33000 at yandex dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105767] New: gcc 12.1 ICE but not with 11.2 compiling boost Date: Sun, 29 May 2022 13:13:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: deco33000 at yandex dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2022 13:13:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105767 Bug ID: 105767 Summary: gcc 12.1 ICE but not with 11.2 compiling boost Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: deco33000 at yandex dot com Target Milestone: --- Hi, Compiling with the boost/geometry.hpp header, using gcc 12.1, I get the following issue: ``` [proc] Executing command: /snap/cmake/current/bin/cmake --build custom_path/build --config Debug --target path_sim -- [build] [1/2 50% :: 50.754] Building CXX object CMakeFiles/path_sim.dir/src/files.cpp.o [build] FAILED: CMakeFiles/path_sim.dir/src/files.cpp.o=20 [build] custom_path/g++ -Icustom_path/include -Icustom_path/boost -Icustom_path -Icustom_path/CGAL-5.4/include -g -g -O0 -std=3Dgnu++20 -MD -= MT CMakeFiles/path_sim.dir/src/files.cpp.o -MF CMakeFiles/path_sim.dir/src/files.cpp.o.d -o CMakeFiles/path_sim.dir/src/files.cpp.o -c custom_path/src/files.cpp [build] In file included from custom_path/boost/boost/geometry/geometries/geometries.hpp:29, [build] from custom_path/boost/boost/geometry/io/svg/svg_mapper.hpp:43, [build] from custom_path/boost/boost/geometry/geometry.hpp:129, [build] from custom_path/boost/boost/geometry.hpp:17, [build] from custom_path/src/files.cpp:3: [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp: In member function =E2=80=98void boost::geometry::model::d3::point_xyz::x(const CoordinateType&)=E2=80=99: [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: er= ror: type/value mismatch at argument 1 in template parameter list for =E2=80=98template class std::set= =E2=80=99 [build] 68 | { this->template set<0>(v); } [build] | ^ [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: no= te:=20 expected a type, got =E2=80=980=E2=80=99 [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: er= ror: template argument 2 is invalid [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: er= ror: template argument 3 is invalid [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp: In member function =E2=80=98void boost::geometry::model::d3::point_xyz::y(const CoordinateType&)=E2=80=99: [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: er= ror: type/value mismatch at argument 1 in template parameter list for =E2=80=98template class std::set= =E2=80=99 [build] 72 | { this->template set<1>(v); } [build] | ^ [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: no= te:=20 expected a type, got =E2=80=981=E2=80=99 [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: er= ror: template argument 2 is invalid [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: er= ror: template argument 3 is invalid [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp: In member function =E2=80=98void boost::geometry::model::d3::point_xyz::z(const CoordinateType&)=E2=80=99: [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: er= ror: type/value mismatch at argument 1 in template parameter list for =E2=80=98template class std::set= =E2=80=99 [build] 76 | { this->template set<2>(v); } [build] | ^ [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: no= te:=20 expected a type, got =E2=80=982=E2=80=99 [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: er= ror: template argument 2 is invalid [build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: er= ror: template argument 3 is invalid [build] ninja: build stopped: subcommand failed. [build] Build finished with exit code 1 ``` It works fine with gcc 11.2 though.. Just include the boost/geometry.hpp header and see the compilation fail with gcc 12.1. Thanks,=