public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96282] New: internal compiler error: in output_constructor_regular_field
@ 2020-07-22 12:13 terra at gnome dot org
  2020-07-22 12:14 ` [Bug c++/96282] " terra at gnome dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: terra at gnome dot org @ 2020-07-22 12:13 UTC (permalink / raw)
  To: gcc-bugs

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

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

end of thread, other threads:[~2021-05-14 14:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-22 12:13 [Bug c++/96282] New: internal compiler error: in output_constructor_regular_field terra at gnome dot org
2020-07-22 12:14 ` [Bug c++/96282] " terra at gnome dot org
2020-07-22 14:13 ` [Bug c++/96282] [8/9/10/11 Regression] " rguenth at gcc dot gnu.org
2020-07-22 15:35 ` jakub at gcc dot gnu.org
2020-07-29  9:07 ` marxin at gcc dot gnu.org
2020-07-31 20:33 ` ppalka at gcc dot gnu.org
2020-08-05 19:08 ` cvs-commit at gcc dot gnu.org
2020-08-07 12:40 ` [Bug c++/96282] [8/9/10 " ppalka at gcc dot gnu.org
2021-02-01 13:41 ` cvs-commit at gcc dot gnu.org
2021-04-21 21:09 ` [Bug c++/96282] [8/9 " cvs-commit at gcc dot gnu.org
2021-05-14 14:01 ` [Bug c++/96282] [8 " jakub 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).