https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
Bug ID: 111356
Summary: Segmentation fault when compiling large static data
structure
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: comer352l at googlemail dot com
Target Milestone: ---
Created attachment 55865
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55865&action=edit
header file
Source files attached.
gcc-Version:
13.2.1 20230803 [revision cc279d6c64562f05019e1d12d0d825f9391b5553] (SUSE
Linux)
System type:
x86-64 (openSUSE Tumbleweed)
Command line that triggers the bug:
LC_ALL=en_GB.UTF-8 g++-13 -c Definitions.cpp
Output:
"g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.opensuse.org/> for instructions."
Additional notes:
- gcc 12.3.0 works fine, so this seems to be a regression.
- bug doesn't occur when compiling with -fwrapv