From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 377303858427; Fri, 26 Aug 2022 14:07:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 377303858427 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661522824; bh=gbYQKbmCbZirbYNOMMPg2cUpfFQ21QvIstYYEBLk/48=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tCLnLAgZ1uRwv0oTGlmBA19bN1VbfhHGBLUQKDxSCte6dRr9MJf2RILqq2+P3l8Ov y2hZti4P9cyeBZ3svkY2LNy/LlUfy46hdUsppo/WVN1i0c/eAlA8P/DlD2d2nvZcAt AWrz+vCNiFqyv3WSKKgHwmWLnrITE7IPEAFs6Bu0= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106647] [C++23] P2362 - Remove non-encodable wide character literals and multicharacter wide character literals Date: Fri, 26 Aug 2022 14:07:03 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D106647 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:dad2d3e003f1a9885cb1fa0f67baf50f62d57b06 commit r13-2221-gdad2d3e003f1a9885cb1fa0f67baf50f62d57b06 Author: Jakub Jelinek Date: Fri Aug 26 16:06:20 2022 +0200 libcpp: Implement P2362R3 - Remove non-encodable wide character literals and multicharacter [PR106647] My understanding of the paper is that we just want to promote the CPP_W= CHAR "character constant too long for its type" warning to error as it is already error for u8, u and U literals. 2022-08-26 Jakub Jelinek PR c++/106647 * charset.cc (wide_str_to_charconst): Implement P2362R3 - Remove non-encodable wide character literals and multicharacter. For C++23 use CPP_DL_ERROR instead of CPP_DL_WARNING for "character constant too long for its type" diagnostics on CPP_W= CHAR literals. * g++.dg/cpp23/wchar-multi1.C: New test. * g++.dg/cpp23/wchar-multi2.C: New test.=