From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25991385801C; Wed, 3 Jan 2024 11:14:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25991385801C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704280454; bh=7kRXcGQUbH9zWRL3sGYHT0NoZggsTUR40c4e2iYLIss=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pl0mjpYE10fFZBxe0nqUse0gT50LQR5jAkAjHieWewqnN+8MEOWEf+1M8tSrUk1vB m3M2giD4fec1OY03OfvLIZWVGg9AB3UB4vCDd2fvappK2dbBgQAN0yGOh9DczbAJYW tTb4OdQh/70mRt0bAiJXrkNvDwGVbAa6aO4biH0g= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113200] std::char_traits::move is not constexpr when the argument is a string literal Date: Wed, 03 Jan 2024 11:13:45 +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.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cf_reconfirmed_on component bug_status keywords everconfirmed 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=3D113200 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-01-03 Component|libstdc++ |c++ Status|UNCONFIRMED |NEW Keywords|rejects-valid |diagnostic Ever confirmed|0 |1 --- Comment #5 from Jonathan Wakely --- Let's recategorize this as a front-end diagnostic issue. GCC's error is bad. That's mostly because of the ((char*)(&((S<5>*)this)->S<5>::data_)) noise, = but it would also be good to explicitly state that comparisons with literals gi= ve unspecified results and so are not constant expressions.=