https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107864
Bug ID: 107864 Summary: Internal Compiler Error (Large Project, C++20) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ian at geometrian dot com Target Milestone: --- Created attachment 53962 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53962&action=edit ".zip" file containing "main.cpp", the repro Using g++ built from source yesterday, getting internal compiler error (segfault) on a large C++20 project. A preprocessed file (lightly edited and zipped for file size limit) reproducing the error is attached. Compiled with: g++ main.cpp -std=c++20 -mavx2 The output begins with: In file included from /path/to/mycodedistr/include/mycode/grfx/_cpu/../color/../../_stdafx/matr.hpp:7, from /path/to/mycodedistr/include/mycode/grfx/_cpu/../color/../../_stdafx.hpp:254, from /path/to/mycodedistr/include/mycode/grfx/_cpu/../color/tuples.hpp:3, from /path/to/mycodedistr/include/mycode/grfx/_cpu/framebuffer.hpp:3, from /path/to/mycodedistr/src/mycode/grfx/_cpu/framebuffer.cpp:1: /path/to/mycodedistr/include/mycode/grfx/_cpu/../color/../../_stdafx/_math.hpp: In instantiation of ‘T BR::Math::round(const T&) requires is_floating_point_v<T> [with T = float]’: /path/to/mycodedistr/include/mycode/grfx/color/convert.hpp:132:29: required from here /path/to/mycodedistr/include/mycode/grfx/_cpu/../color/../../_stdafx/_math.hpp:111:23: internal compiler error: Segmentation fault 0x7f3e5c1be51f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7f3e5c1a5d8f __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7f3e5c1a5e3f __libc_start_main_impl ../csu/libc-start.c:392 Please submit a full bug report "gcc -v" includes: Target: x86_64-pc-linux-gnu Configured with: ../gcc-src/configure --enable-languages=c,c++ --enable-multiarch --program-suffix=-trunk gcc version 13.0.0 20221124 (experimental) (GCC)