From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB20C3858C3A; Wed, 8 Mar 2023 22:08:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB20C3858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678313322; bh=Kx/QnaPB1QFY+3L/73yu+EwjkHj5ZQpgssxdyPfXRzY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MypzGlfPowUoxVLZ0fG2qihqM2GOyh7SjJmxuZDqeuNLo75CcSi9XcoEZCENvIjgg VUhB13gHJwFTHinfAnGv8ghhLQ2XZ9rOua6F8r2iiueWjwPJTV32rDeeA9wTyp63Ar 5yBNKCklXW6IsoZBjXDLCpOi8II2dpCmcpVXL6xY= 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:08:42 +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: short_desc target_milestone priority 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 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ICE: tree check: expected |[10/11/12/13 Regression] |constructor, have |ICE: tree check: expected |view_convert_expr in |constructor, have |cxx_eval_store_expression, |view_convert_expr in |at cp/constexpr.cc:5928 |cxx_eval_store_expression, | |at cp/constexpr.cc:5928 Target Milestone|13.0 |10.5 Priority|P3 |P2 --- Comment #3 from Marek Polacek --- This isn't about consteval. Adjusted C++17 test: // PR c++/107280 struct string { char str[8] =3D ""; }; template constexpr void test () { string str{}; auto append =3D [&](const char *s) { *str.str =3D *s; }; append(""); } static_assert ((test(), true), ""); Started with r10-3661-g8e007055dd1374, making this a regression. commit 8e007055dd1374ca4c44406a4ead172be0dfa3a8 Author: Jakub Jelinek Date: Sat Oct 5 09:38:21 2019 +0200 PR c++/91369 - Implement P0784R7: constexpr new=