From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 725B03857354; Wed, 7 Jun 2023 19:51:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 725B03857354 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686167499; bh=aIC7GYx+1gtuiOXxdlCL+UAtP/W1wco7Mh8GyoR6T44=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Jh6TUmWSxDbKmHesNQaFO6vCfEwLF5/3cO/pgZPnWmkPaGlQubuO44vBCcYyMMtYV Q4TLrq7Kg6UveyUAiiY/RCFBF9lOWThG9JBlcQH0BLxD1VZIADmX+Htrfj7DwO0KfH bXwtpNoGfikSY5F0izZlHC3OsQELHWFLryhOKwGE= From: "tschwinge at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107198] [13/14 Regression] ICE in cp_gimplify_expr, at cp/cp-gimplify.cc:752 since r13-3175-g6ffbf87ca66f4ed9 Date: Wed, 07 Jun 2023 19:51:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tschwinge at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc Message-ID: In-Reply-To: References: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107198 Thomas Schwinge changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2022-10-10 00:00:00 |2023-6-7 CC| |tschwinge at gcc dot gnu.o= rg --- Comment #4 from Thomas Schwinge --- Reconfirmed. Given native x86_64-pc-linux-gnu build of one-week-old commit 2720bbd597f56742a17119dfe80edc2ba86af255, running 'g++.dg/eh/aggregate1.C' = with '-fno-exceptions': $ make check-gcc-c++ RUNTESTFLAGS=3D'--target_board=3Dunix/-fno-excepti= ons dg.exp=3Daggregate1.C' ..., I see ICEs not for '-std=3Dc++98', but for '-std=3Dc++14' and higher: UNSUPPORTED: g++.dg/eh/aggregate1.C -std=3Dc++98: exception handling disabled FAIL: g++.dg/eh/aggregate1.C -std=3Dc++14 (internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:782) UNSUPPORTED: g++.dg/eh/aggregate1.C -std=3Dc++14: exception handling disabled FAIL: g++.dg/eh/aggregate1.C -std=3Dc++17 (internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:782) UNSUPPORTED: g++.dg/eh/aggregate1.C -std=3Dc++17: exception handling disabled FAIL: g++.dg/eh/aggregate1.C -std=3Dc++20 (internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:782) UNSUPPORTED: g++.dg/eh/aggregate1.C -std=3Dc++20: exception handling disabled [...]/g++.dg/eh/aggregate1.C: In constructor 'A::A()': [...]/g++.dg/eh/aggregate1.C:18:47: error: exception handling disabled,= use '-fexceptions' to enable [...]/g++.dg/eh/aggregate1.C: In function 'void try_idx(int)': [...]/g++.dg/eh/aggregate1.C:40:25: error: 'x' was not declared in this scope [...]/g++.dg/eh/aggregate1.C:39:40: internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:782 0x6f7024 cp_gimplify_expr(tree_node**, gimple**, gimple**) [...]/gcc/cp/cp-gimplify.cc:782 0x13d6cfd gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) [...]/gcc/gimplify.cc:16331 0x13dcf9d gimplify_init_ctor_eval_range [...]/gcc/gimplify.cc:4929 0x13dcf9d gimplify_init_ctor_eval [...]/gcc/gimplify.cc:5008 0x13dce55 gimplify_init_ctor_eval [...]/gcc/gimplify.cc:5033 0x13dd671 gimplify_init_constructor [...]/gcc/gimplify.cc:5447 0x13ea18d gimplify_modify_expr [...]/gcc/gimplify.cc:6127 0x13d76ea gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) [...]/gcc/gimplify.cc:16422 0x13e8567 gimplify_stmt(tree_node**, gimple**) [...]/gcc/gimplify.cc:7238 0x13e8567 gimplify_compound_expr [...]/gcc/gimplify.cc:6431 0x13d7aae gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) [...]/gcc/gimplify.cc:16412 0x13d80f8 gimplify_cleanup_point_expr [...]/gcc/gimplify.cc:7238 0x13d80f8 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) [...]/gcc/gimplify.cc:16815 0x13da0a6 gimplify_stmt(tree_node**, gimple**) [...]/gcc/gimplify.cc:7238 0x13d89a8 gimplify_statement_list [...]/gcc/gimplify.cc:2019 0x13d89a8 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) [...]/gcc/gimplify.cc:16867 0x13da0a6 gimplify_stmt(tree_node**, gimple**) [...]/gcc/gimplify.cc:7238 0x13d89a8 gimplify_statement_list [...]/gcc/gimplify.cc:2019 0x13d89a8 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) [...]/gcc/gimplify.cc:16867 0x13d80f8 gimplify_cleanup_point_expr [...]/gcc/gimplify.cc:7238=