From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by server2.sourceware.org (Postfix, from userid 48) id B6913389F4E7; Sun, 8 Mar 2020 16:41:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 server2.sourceware.org B6913389F4E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1583686467; bh=IIKOljfl1AmxqvD6Wq4/THPMi+izJkw97GQiijYiIjU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PfkUVHLC9fx1QrYbmhoX5yE2JbBW/Rcz+VMo0lA9XDGSrijAydo9SvotguLWjyTtU M/tLVUGJ07p2e3eedtzF0KeOcMoqKWMLmRtEEKnEOqEp8SK+zaMz/TC4f1W+ydTFfl c39O9B21b0ooei2RTI5zLArpFtkoczw7fEUNBfg4= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/94066] [8/9/10 Regression] ICE (starting/ending union member lifetime) in cxx_eval_bare_aggregate, at cp/constexpr.c:3790 since r6-7592 Date: Sun, 08 Mar 2020 16:41:39 +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: 10.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 X-Spam-Status: No, score=-7.9 required=5.0 tests=ALL_TRUSTED, BAYES_00, GIT_PATCH_2 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: Sun, 08 Mar 2020 16:54:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94066 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #4 from Patrick Palka --- We also ICE elsewhere with the following modified testcase: $ cat 94066.C union U; constexpr long foo(U *up); union U { long a =3D foo(this); int y; }; constexpr long foo(U *up) { up->y =3D 11; return 42; } extern constexpr U u =3D {}; $ g++ -std=3Dc++17 94066.C 94066.C:15:26: internal compiler error: in output_constructor_regular_field= , at varasm.c:5230 15 | extern constexpr U u =3D {}; | ^ 0x82f159 output_constructor_regular_field /home/patrick/code/gcc/gcc/varasm.c:5230 0x82f159 output_constructor /home/patrick/code/gcc/gcc/varasm.c:5536 0x1375894 output_constant /home/patrick/code/gcc/gcc/varasm.c:4908 0x1375894 assemble_variable_contents /home/patrick/code/gcc/gcc/varasm.c:2148 0x137e152 assemble_variable(tree_node*, int, int, int) /home/patrick/code/gcc/gcc/varasm.c:2327 0x1380c79 varpool_node::assemble_decl() /home/patrick/code/gcc/gcc/varpool.c:587 0xc209ec output_in_order /home/patrick/code/gcc/gcc/cgraphunit.c:2564 0xc209ec symbol_table::compile() /home/patrick/code/gcc/gcc/cgraphunit.c:2801 0xc22eec symbol_table::compile() /home/patrick/code/gcc/gcc/cgraphunit.c:2717 0xc22eec symbol_table::finalize_compilation_unit() /home/patrick/code/gcc/gcc/cgraphunit.c:2984=