From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 155F63858D3C; Tue, 12 Sep 2023 18:28:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 155F63858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694543319; bh=agbj91NR1w484C3LCy+Bq0nM2U8q8qOZUYocvC4gBIA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Y2k93zINkggAuj9ou3tuFVvHkGAEA7fQkshQNgrTuYHvmRofMQL8tQLnKQxoxLx1x EdqMWWRyTUWIr1xIZFFXDSVrir1X0YG7hnwgSWciPOb8fr/sX1jLH2UX2rU5lKEdeF I41XV7D7Yq4+H9jNijk3b/Q3/N8jPeJFcxcPL+2k= From: "pkeir at outlook dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111272] [13/14 Regression] Truncated error messages with -std=c++23 and -std=c++26 Date: Tue, 12 Sep 2023 18:28: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: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pkeir at outlook dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.3 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=3D111272 --- Comment #4 from Paul Keir --- I believe P2448R2 would only allow the code, without the static_assert. Explicitly calling `test()`, `Jam::Jam()` and then `Jam::ft()` here would m= ean evaluating a non-constexpr function (i.e. `ft`). ft is *constexpr-suitable*, but still needs the `constexpr` specifier when it is constant evaluated.=