https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96282
Bug ID: 96282 Summary: internal compiler error: in output_constructor_regular_field Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: terra at gnome dot org Target Milestone: --- Created attachment 48915 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48915&action=edit shawn.C With to-be-attached program I get an internal compiler error. Happens with 32-bit mode as well as 64-bit mode. Happens only without -O2, but happened also with -O2 before I minimized. Happens with g++ 10.1.0 and with whatever g++ 7.x that suse ships. # /usr/local/products/gcc/10.1.0/bin/g++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -pedantic-errors -Wall -Wno-unknown-pragmas -W -fsigned-char -malign-data=abi -fno-semantic-interposition -gz=zlib-gnu -c -march=westmere -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mno-movbe -mno-aes -mno-sha -mno-pclmul -mpopcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -msse4.2 -msse4.1 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid --param "l1-cache-size=32" --param "l1-cache-line-size=64" --param "l2-cache-size=12288" -mtune=westmere -std=gnu++17 -Wrestrict -Wdangling-else -Wno-placement-new -Wno-deprecated-declarations -fno-strict-overflow -Wsuggest-override -Wzero-as-null-pointer-constant -Wwrite-strings -Wno-ignored-qualifiers -Wno-array-bounds -Wdeprecated-copy -Wdeprecated-copy-dtor -Wredundant-move -m32 -mfpmath=sse -Woverloaded-virtual -g -o shawn.o shawn.C shawn.C:29:1: internal compiler error: in output_constructor_regular_field, at varasm.c:5250 29 | } | ^ 0x66674d output_constructor_regular_field ../../../gcc-10.1.0/gcc/varasm.c:5250 0x66674d output_constructor ../../../gcc-10.1.0/gcc/varasm.c:5556 0xf2124a output_constant ../../../gcc-10.1.0/gcc/varasm.c:4908 0xf2124a output_constructor_regular_field ../../../gcc-10.1.0/gcc/varasm.c:5289 0xf2124a output_constructor ../../../gcc-10.1.0/gcc/varasm.c:5556 0xf2124a output_constant ../../../gcc-10.1.0/gcc/varasm.c:4908 0xf2124a output_constructor_regular_field ../../../gcc-10.1.0/gcc/varasm.c:5289 0xf2124a output_constructor ../../../gcc-10.1.0/gcc/varasm.c:5556 0xf21de5 output_constant ../../../gcc-10.1.0/gcc/varasm.c:4908 0xf21de5 assemble_variable_contents ../../../gcc-10.1.0/gcc/varasm.c:2148 0xf27c71 assemble_variable(tree_node*, int, int, int) ../../../gcc-10.1.0/gcc/varasm.c:2327 0xf2a61a varpool_node::assemble_decl() ../../../gcc-10.1.0/gcc/varpool.c:587 0xf2a61a varpool_node::assemble_decl() ../../../gcc-10.1.0/gcc/varpool.c:555 0x8e488c output_in_order ../../../gcc-10.1.0/gcc/cgraphunit.c:2582 0x8e488c symbol_table::compile() ../../../gcc-10.1.0/gcc/cgraphunit.c:2819 0x8e68cc symbol_table::compile() ../../../gcc-10.1.0/gcc/cgraphunit.c:2735 0x8e68cc symbol_table::finalize_compilation_unit() ../../../gcc-10.1.0/gcc/cgraphunit.c:3002 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. # /usr/local/products/gcc/10.1.0/bin/g++ -v Using built-in specs. COLLECT_GCC=/usr/local/products/gcc/10.1.0/bin/g++ COLLECT_LTO_WRAPPER=/usr/local/products/gcc/10.1.0/lib/gcc/x86_64-suse-linux/10.1.0/lto-wrapper Target: x86_64-suse-linux Configured with: ../../gcc-10.1.0/configure --enable-languages=c,c++,fortran --enable-targets=x86_64-suse-linux,i686-suse-linux --prefix=/usr/local/products/gcc/10.1.0 --with-gnu-as --with-as=/usr/local/products/gcc/binutils-2.32/bin/as --with-gnu-ld --with-ld=/usr/local/products/gcc/binutils-2.32/bin/ld --enable-threads=posix --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=pool x86_64-suse-linux Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.1.0 (GCC) # uname -a Linux monsterd09 5.0.13-1-default #1 SMP Sun May 5 15:48:04 UTC 2019 (b11e2d7) x86_64 x86_64 x86_64 GNU/Linux