Issue 93130
Summary [Clang][C++26] Raw string literals with newly perimitted d-chars are still rejected
Labels clang
Assignees
Reporter frederick-vs-ja
    https://clang.llvm.org/cxx_status.html currently claims that [P2558R2](https://wg21.link/p2558r2) is implemented. However, per [[lex.string]](https://eel.is/c++draft/lex.string), `@`, `$`, and `` ` `` need to be usable as d-chars since C++26, and Clang doesn't accept the newly permitted raw string literals yet.

[Godbolt link](https://godbolt.org/z/W54b1heq4)
```C++
int main() {
  (void) R"abc`@$(foobar)abc`@$";
}
```

Perhaps we should add pedantic warning/error for these permitted raw string literals in pre-C++26 modes.

Originally discovered by @jakubjelinek in https://gcc.gnu.org/PR110343.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to