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

            Bug ID: 118961
           Summary: ICE g++ modules with LTO
           Product: gcc
           Version: 14.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: galjoen at proximus dot be
  Target Milestone: ---

Created attachment 60543
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60543&action=edit
Makefile and sources

System: ArchLinux (2025-02-18)
g++ (GCC) 14.2.1 20250207

Output of make:
--------------
g++ -std=c++20 -fmodules-ts -xc++-system-header iostream        
g++ -std=c++20 -fmodules-ts -xc++-system-header string
g++ -c hello.cpp -Wall -Wextra -flto -O3 -std=c++20 -fmodules-ts
g++ -c main.cpp -Wall -Wextra -flto -O3 -std=c++20 -fmodules-ts
g++ -o hello main.o hello.o -flto -O3
lto1: internal compiler error: in add_symbol_to_partition_1, at
lto/lto-partition.cc:153
0x1e42a6a internal_error(char const*, ...)
        ???:0
0x6c5207 fancy_abort(char const*, int, char const*)
        ???:0
0x716565 lto_balanced_map(int, int)
        ???:0
0x727809 lto_main()
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gitlab.archlinux.org/archlinux/packaging/packages/gcc/-/issues>
for instructions.
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [makefile:16: hello] Error 1

SOURCE: (see attachment)
------

Reply via email to