From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 61CA33857C6A; Wed, 22 Jul 2020 12:13:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 61CA33857C6A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595420015; bh=rUFJtWOzvy2YQObFOEy9tt/5GYqLblSCkZKtUPyvczE=; h=From:To:Subject:Date:From; b=nzm4P3qktkt/1B0aE+1VOpN+CveVcrioAVfLKRMgu/hzDqCinCMSeahlDa4k3W3fy nO3jUeaMdLI4OZlF24tUm/ZzLmpuhOGCnQVpCKAaPjOVY0kJPbiGS0R5NUFcTdVdbm rQD38WYNz4GibRjKVZFrfj+EELC6GhM7/0iRY5To= From: "terra at gnome dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96282] New: internal compiler error: in output_constructor_regular_field Date: Wed, 22 Jul 2020 12:13:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: terra at gnome dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2020 12:13:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96282 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=3D48915&action=3Dedit 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=3D64 -D_LARGEFILE64_SOURCE -pedantic-errors -Wall -Wno-unknown-pragmas -W -fsigned-char -malign-data=3Dabi -fno-semantic-interposition -gz=3Dzlib-gnu= -c -march=3Dwestmere -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-f1= 6c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mfxsr -mno-xsave -mno-xsave= opt -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 --p= aram "l1-cache-size=3D32" --param "l1-cache-line-size=3D64" --param "l2-cache-size=3D12288" -mtune=3Dwestmere -std=3Dgnu++17 -Wrestrict -Wdangl= ing-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=3Dsse -Woverloaded-vi= rtual -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 for instructions. # /usr/local/products/gcc/10.1.0/bin/g++ -v Using built-in specs. COLLECT_GCC=3D/usr/local/products/gcc/10.1.0/bin/g++ COLLECT_LTO_WRAPPER=3D/usr/local/products/gcc/10.1.0/lib/gcc/x86_64-suse-li= nux/10.1.0/lto-wrapper Target: x86_64-suse-linux Configured with: ../../gcc-10.1.0/configure --enable-languages=3Dc,c++,fort= ran --enable-targets=3Dx86_64-suse-linux,i686-suse-linux --prefix=3D/usr/local/products/gcc/10.1.0 --with-gnu-as --with-as=3D/usr/local/products/gcc/binutils-2.32/bin/as --with-gnu-ld --with-ld=3D/usr/local/products/gcc/binutils-2.32/bin/ld --enable-threads= =3Dposix --enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=3Dpool x86_64-suse-linux Thread model: posix Supported LTO compression algorithms: zlib gcc version 10.1.0 (GCC)=20 # uname -a Linux monsterd09 5.0.13-1-default #1 SMP Sun May 5 15:48:04 UTC 2019 (b11e2= d7) x86_64 x86_64 x86_64 GNU/Linux=