From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BF1EC3840C21; Thu, 4 Jun 2020 09:54:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF1EC3840C21 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591264479; bh=Z22Kq4LCUuRuHQfGks2qk5kOhjsn14NPI5py+beYYDE=; h=From:To:Subject:Date:From; b=JWl4FqY6sPSyaAbg1kXBxlgOunFls+UwaItstE3KQybPt73p8BTOY3p7jYQ8y3FSr 6eOGY3tyFgChYyjoPeSC2TWOpTntB1/eZTiyApbN+KZ9GZcs9ONezGlfc0NKaerxUr iSs+3niSu9Xgz56ocViowfJAnbDj8qp/38BN1Oj0= From: "slyfox at inbox dot ru" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95528] New: internal compiler error: in emit_move_insn, at expr.c:3814 Date: Thu, 04 Jun 2020 09:54:39 +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: slyfox at inbox dot ru 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 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: Thu, 04 Jun 2020 09:54:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95528 Bug ID: 95528 Summary: internal compiler error: in emit_move_insn, at expr.c:3814 Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at inbox dot ru Target Milestone: --- The bug is initially reported in https://bugs.gentoo.org/727028 as an ICE on firefox-77 code by Thomas Deutschmann. Here is the minimal reproducer reduced by creduce: $ cat bug.cc template struct b { typedef a c __attribute__((vector_size(sizeof(a) * 4))); union { c d; struct { a e, f, g, h; }; }; b(); b(const b &i) : d(i.d) {} static b j(c); template operator b() { b::j(typename b::c{e, f, g, h}); } }; template using l =3D b; using m =3D l; using n =3D l; m o(n i) { return i; } b q; void p() { o(q); } $ LANG=3DC /usr/bin/x86_64-pc-linux-gnu-g++ -march=3Dskylake-avx512 -O2 -c = bug.cc -o bug.o during RTL pass: expand bug.cc: In function 'void p()': bug.cc:13:12: internal compiler error: in emit_move_insn, at expr.c:3814 13 | b::j(typename b::c{e, f, g, h}); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x5cb5cc emit_move_insn(rtx_def*, rtx_def*) ../../gcc-11.0.0_pre9999/gcc/expr.c:3814 0x82e459 load_register_parameters ../../gcc-11.0.0_pre9999/gcc/calls.c:3143 0x82e459 expand_call(tree_node*, rtx_def*, int) ../../gcc-11.0.0_pre9999/gcc/calls.c:4589 0x942856 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc-11.0.0_pre9999/gcc/expr.c:11135 0x94cc64 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) ../../gcc-11.0.0_pre9999/gcc/expr.c:8358 0x94cc64 store_expr(tree_node*, rtx_def*, int, bool, bool) ../../gcc-11.0.0_pre9999/gcc/expr.c:5752 0x94e1f9 expand_assignment(tree_node*, tree_node*, bool) ../../gcc-11.0.0_pre9999/gcc/expr.c:5514 0x83c40a expand_call_stmt ../../gcc-11.0.0_pre9999/gcc/cfgexpand.c:2701 0x83c40a expand_gimple_stmt_1 ../../gcc-11.0.0_pre9999/gcc/cfgexpand.c:3682 0x83c40a expand_gimple_stmt ../../gcc-11.0.0_pre9999/gcc/cfgexpand.c:3847 0x842916 expand_gimple_basic_block ../../gcc-11.0.0_pre9999/gcc/cfgexpand.c:5887 0x842916 execute ../../gcc-11.0.0_pre9999/gcc/cfgexpand.c:6571 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Both gcc-10 and gcc-master are affected. gcc-master crash for comparison: $ ${HOME}/dev/git/gcc-native-quick/gcc/xg++ -B ${HOME}/dev/git/gcc-native-quick/gcc -march=3Dskylake-avx512 -O2 -c bug.cc = -o bug.o during RTL pass: expand bug.cc: In function 'void p()': bug.cc:13:12: internal compiler error: in emit_move_insn, at expr.c:3814 13 | b::j(typename b::c{e, f, g, h}); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x7f1550e53d59 __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ ${HOME}/dev/git/gcc-native-quick/gcc/xg++ -B ${HOME}/dev/git/gcc-native-quick/gcc -v Reading specs from /home/slyfox/dev/git/gcc-native-quick/gcc/specs COLLECT_GCC=3D/home/slyfox/dev/git/gcc-native-quick/gcc/xg++ COLLECT_LTO_WRAPPER=3D/home/slyfox/dev/git/gcc-native-quick/gcc/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --enable-languages=3Dc,c++ --disable-boot= strap --with-multilib-list=3Dm64 --prefix=3D/home/slyfox/dev/git/gcc-native-quick/../gcc-native-quick-instal= led --disable-nls --without-isl --disable-libsanitizer --disable-libvtv --disable-libgomp --disable-libstdcxx-pch --disable-libunwind-exceptions CFLAGS=3D'-O1 ' CXXFLAGS=3D'-O1 ' --with-sysroot=3D/usr/x86_64-HEAD-linux-g= nu Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 11.0.0 20200604 (experimental) (GCC) Not sure if it's the same as bug #95394. That bug says it's a gcc-11 regression, but this one happens on gcc-10.1.0 as well.=