Bug 110343 - [C++26] P2558R2 - Add @, $, and ` to the basic character set
Summary: [C++26] P2558R2 - Add @, $, and ` to the basic character set
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: c++26-core
  Show dependency treegraph
 
Reported: 2023-06-21 16:13 UTC by Marek Polacek
Modified: 2023-08-23 12:45 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Polacek 2023-06-21 16:13:44 UTC
See <https://wg21.link/P2558R2>.
Comment 1 Jakub Jelinek 2023-08-23 12:45:32 UTC
clang claims to implement this but that doesn't seem to be the case, I think
e.g.
const char *p = R"abc`@$(foobar)abc`@$";
should be accepted for -std=c++2c.
I'm lost at what we need to do for
This is currently rejected by GCC ‘error: universal character is not valid in an identifier’, although this seems to be a bug, and the code is accepted by clang and msvc.
in the paper (3.1).