From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5958E3857C71; Mon, 16 May 2022 19:06:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5958E3857C71 From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/105622] New: ICE in cxx_eval_store_expression with [[no_unique_address]] and empty data members Date: Mon, 16 May 2022 19:06:50 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka 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: Mon, 16 May 2022 19:06:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105622 Bug ID: 105622 Summary: ICE in cxx_eval_store_expression with [[no_unique_address]] and empty data members Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ppalka at gcc dot gnu.org Target Milestone: --- struct empty { empty() =3D default; constexpr empty(int) { } }; struct container { empty __begin_ =3D {}; [[no_unique_address]] empty __size_ =3D 0; }; constexpr bool test() { container s; return true; } static_assert(test()); testcase.ii: In function =E2=80=98constexpr bool test()=E2=80=99: testcase.ii:12:13: in =E2=80=98constexpr=E2=80=99 expansion of =E2=80=98s= .container::container()=E2=80=99 testcase.ii:12:13: internal compiler error: in cxx_eval_store_expression, at cp/constexpr.cc:5927 12 | container s; | ^ 0x6a0ca0 cxx_eval_store_expression /home/patrick/gcc/gcc/cp/constexpr.cc:5927 0x96c254 cxx_eval_constant_expression /home/patrick/gcc/gcc/cp/constexpr.cc:6847 0x96c4d6 cxx_eval_constant_expression /home/patrick/gcc/gcc/cp/constexpr.cc:7236 0x96c717 cxx_eval_constant_expression /home/patrick/gcc/gcc/cp/constexpr.cc:7048=