From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C34B3858D20; Thu, 17 Feb 2022 16:57:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C34B3858D20 From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/104583] New: [12 regression] ICE dolphin-emu at cp/cp-gimplify.cc:746 Date: Thu, 17 Feb 2022 16:57:07 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.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 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, 17 Feb 2022 16:57:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104583 Bug ID: 104583 Summary: [12 regression] ICE dolphin-emu at cp/cp-gimplify.cc:746 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: slyfox at gcc dot gnu.org Target Milestone: --- Noticed ICE today when was building dolpjin-emu with a weekly gcc snapshot = and current gcc master. Minimal reproducer: // $ cat bug.cc struct TVec3 { TVec3(); int data; }; using Vec3 =3D TVec3; struct { Vec3 position{}; } EmulatePoint_state; void EmulatePoint() { EmulatePoint_state =3D {}; } /tmp/gcc/xg++ -B/tmp/gcc -c bug.cc -freport-bug bug.cc: In function =E2=80=98void EmulatePoint()=E2=80=99: bug.cc:9:42: internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:746 9 | void EmulatePoint() { EmulatePoint_state =3D {}; } | ~~~~~~~~~~~~~~~~~~~^~~~ 0x7a0fb2 cp_gimplify_expr(tree_node**, gimple**, gimple**) /home/slyfox/dev/git/gcc/gcc/cp/cp-gimplify.cc:746 0xd9fb80 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:14893 0xdab095 gimplify_init_ctor_preeval /home/slyfox/dev/git/gcc/gcc/gimplify.cc:4678 0xdab19d gimplify_init_ctor_preeval /home/slyfox/dev/git/gcc/gcc/gimplify.cc:4664 0xdac73d gimplify_init_constructor /home/slyfox/dev/git/gcc/gcc/gimplify.cc:5243 0xdacf76 gimplify_modify_expr_rhs /home/slyfox/dev/git/gcc/gcc/gimplify.cc:5560 0xdad79f gimplify_modify_expr /home/slyfox/dev/git/gcc/gcc/gimplify.cc:5926 0xd9b0b1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:14984 0xda029d gimplify_stmt(tree_node**, gimple**) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:7039 0xda18fc gimplify_cleanup_point_expr /home/slyfox/dev/git/gcc/gcc/gimplify.cc:6778 0xd9c491 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:15377 0xda029d gimplify_stmt(tree_node**, gimple**) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:7039 0xda1e49 gimplify_body(tree_node*, bool) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:16230 0xda2365 gimplify_function_tree(tree_node*) /home/slyfox/dev/git/gcc/gcc/gimplify.cc:16384 0xbaceda cgraph_node::analyze() /home/slyfox/dev/git/gcc/gcc/cgraphunit.cc:675 0xbaf6a5 analyze_functions /home/slyfox/dev/git/gcc/gcc/cgraphunit.cc:1240 0xbb0795 symbol_table::finalize_compilation_unit() /home/slyfox/dev/git/gcc/gcc/cgraphunit.cc:2500 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See for instructions. Preprocessed source stored into /tmp/ccpGKHxu.out file, please attach this = to your bugreport. $ /tmp/gcc/xg++ -B/tmp/gcc -v Reading specs from /tmp/gcc/specs COLLECT_GCC=3D/tmp/gcc/xg++ COLLECT_LTO_WRAPPER=3D/tmp/gcc/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /home/slyfox/dev/git/gcc/configure --disable-multilib --disable-bootstrap --with-native-system-header-dir=3D/nix/store/vccvfa5bjb9dv4x6zq5gjf1yp58y4b= rg-glibc-2.33-108-dev/include --prefix=3D/tmp/__td__ CFLAGS=3D'-O1 -ggdb3' CXXFLAGS=3D'-O1 -ggdb3' LDFLAG= S=3D'-O1 -ggdb3' Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.1 20220217 (experimental) (GCC)=