From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 05BC63858C78; Wed, 8 Mar 2023 22:40:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 05BC63858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678315212; bh=aZ/1Ohj3RzTlupRHLOx84ERkAS1Vki0sPLehW3hR2Q4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=els25JX/tQ+J+xA963LeQDSknhWg4CjgKheGFMpF89aAuOovbTt+jyty0sBjFmBGZ Qevu7CIKNmzlNKQ44FlhqzIIPiph02GBMR5lylat8LKHB0l7agKyLJ9aVG3z0ZAQiy JLiEUHp3SakYEDcSEDiFQo7rYZnE0kqLsCd3m7aw= From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107280] [10/11/12/13 Regression] ICE: tree check: expected constructor, have view_convert_expr in cxx_eval_store_expression, at cp/constexpr.cc:5928 Date: Wed, 08 Mar 2023 22:40:11 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D107280 --- Comment #4 from Marek Polacek --- We crash in cxx_eval_store_expression. *valp for 'str', the VAR_DECL, used= to be {.str=3D""} so in the !refs->is_empty () loop we'd go to the if (TREE_CO= DE (*valp) =3D=3D STRING_CST) branch when processing the .str initializer. Bu= t now *valp is {.str=3DVCE("")} so we crash on no_zero_init =3D CONSTRUCTOR_NO_CLEARING (*valp); So far it seems to me that we just need to strip the location wrapper.=