From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4F0053858407; Tue, 9 Jan 2024 18:35:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F0053858407 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704825342; bh=kfUsK+KOktafYLdWhou85fgYjLRBmtQF/BLnALRDkvQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=e0nbFCgRkPAKYUtf7utZ02q0qhw5vBpS/c/9zetLrrAQClDczNqAn/m1XNgazSu0l XAVfO4Hz8oFKZaL83DbyTNw93ovJAKXi1SZ+JJRqCdTj3qbKnxagGjEvyGivoxzTjU mFIoZ9hTI37wGo3jJibodpQftNb21k3NGZbFw89U= From: "emsr at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110343] [C++26] P2558R2 - Add @, $, and ` to the basic character set Date: Tue, 09 Jan 2024 18:35: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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: emsr at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: 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=3D110343 --- Comment #2 from Ed Smith-Rowland --- The example in the paper: ---------------------------------------------------------- /* gcc -E charset.c > charhelp.c gcc -o charhelp charhelp.c */ #include #define STR(x) #x int main() { printf("%s", STR(\u0060)); // U+0060 is ` GRAVE ACCENT printf("%s", "\u0060"); // U+0060 is ` GRAVE ACCENT } ---------------------------------------------------------- Does give an error, but when I preprocess the file with -E the result compiles just fine with either C or C++. Preprocessor bug?=