public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105767] New: gcc 12.1 ICE but not with 11.2 compiling boost
@ 2022-05-29 13:13 deco33000 at yandex dot com
  2022-05-29 15:39 ` [Bug c++/105767] " deco33000 at yandex dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: deco33000 at yandex dot com @ 2022-05-29 13:13 UTC (permalink / raw)
  To: gcc-bugs

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

            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 
[build] custom_path/g++  -Icustom_path/include -Icustom_path/boost
-Icustom_path -Icustom_path/CGAL-5.4/include -g -g -O0 -std=gnu++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 ‘void boost::geometry::model::d3::point_xyz<CoordinateType,
CoordinateSystem>::x(const CoordinateType&)’:
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: error:
type/value mismatch at argument 1 in template parameter list for
‘template<class _Key, class _Compare, class _Alloc> class std::set’
[build]    68 |     { this->template set<0>(v); }
[build]       |                           ^
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: note: 
 expected a type, got ‘0’
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: error:
template argument 2 is invalid
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:68:27: error:
template argument 3 is invalid
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp: In member
function ‘void boost::geometry::model::d3::point_xyz<CoordinateType,
CoordinateSystem>::y(const CoordinateType&)’:
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: error:
type/value mismatch at argument 1 in template parameter list for
‘template<class _Key, class _Compare, class _Alloc> class std::set’
[build]    72 |     { this->template set<1>(v); }
[build]       |                           ^
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: note: 
 expected a type, got ‘1’
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: error:
template argument 2 is invalid
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:72:27: error:
template argument 3 is invalid
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp: In member
function ‘void boost::geometry::model::d3::point_xyz<CoordinateType,
CoordinateSystem>::z(const CoordinateType&)’:
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: error:
type/value mismatch at argument 1 in template parameter list for
‘template<class _Key, class _Compare, class _Alloc> class std::set’
[build]    76 |     { this->template set<2>(v); }
[build]       |                           ^
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: note: 
 expected a type, got ‘2’
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: error:
template argument 2 is invalid
[build] custom_path/boost/boost/geometry/geometries/point_xyz.hpp:76:27: error:
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,

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/105767] gcc 12.1 ICE but not with 11.2 compiling boost
  2022-05-29 13:13 [Bug c++/105767] New: gcc 12.1 ICE but not with 11.2 compiling boost deco33000 at yandex dot com
@ 2022-05-29 15:39 ` deco33000 at yandex dot com
  2022-05-31 14:34 ` acoplan at gcc dot gnu.org
  2023-07-12  3:24 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: deco33000 at yandex dot com @ 2022-05-29 15:39 UTC (permalink / raw)
  To: gcc-bugs

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

KL <deco33000 at yandex dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from KL <deco33000 at yandex dot com> ---
Moving the include to the top solved the issue.
Weird, but that's fine.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/105767] gcc 12.1 ICE but not with 11.2 compiling boost
  2022-05-29 13:13 [Bug c++/105767] New: gcc 12.1 ICE but not with 11.2 compiling boost deco33000 at yandex dot com
  2022-05-29 15:39 ` [Bug c++/105767] " deco33000 at yandex dot com
@ 2022-05-31 14:34 ` acoplan at gcc dot gnu.org
  2023-07-12  3:24 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: acoplan at gcc dot gnu.org @ 2022-05-31 14:34 UTC (permalink / raw)
  To: gcc-bugs

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

Alex Coplan <acoplan at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |WAITING
                 CC|                            |acoplan at gcc dot gnu.org
   Last reconfirmed|                            |2022-05-31
     Ever confirmed|0                           |1
         Resolution|FIXED                       |---

--- Comment #2 from Alex Coplan <acoplan at gcc dot gnu.org> ---
The compiler should never ICE. If you can reproduce the problem (by switching
the include order back), please can you attach the preprocessed source (with
-E) needed to reproduce the issue?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug c++/105767] gcc 12.1 ICE but not with 11.2 compiling boost
  2022-05-29 13:13 [Bug c++/105767] New: gcc 12.1 ICE but not with 11.2 compiling boost deco33000 at yandex dot com
  2022-05-29 15:39 ` [Bug c++/105767] " deco33000 at yandex dot com
  2022-05-31 14:34 ` acoplan at gcc dot gnu.org
@ 2023-07-12  3:24 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-07-12  3:24 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|WAITING                     |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 106310 (which has a reduced testcase).

*** This bug has been marked as a duplicate of bug 106310 ***

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-12  3:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-29 13:13 [Bug c++/105767] New: gcc 12.1 ICE but not with 11.2 compiling boost deco33000 at yandex dot com
2022-05-29 15:39 ` [Bug c++/105767] " deco33000 at yandex dot com
2022-05-31 14:34 ` acoplan at gcc dot gnu.org
2023-07-12  3:24 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).