Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The C++20 break u8 string literal compatibility bug #299

Open
uikino opened this issue Mar 21, 2022 · 3 comments
Open

The C++20 break u8 string literal compatibility bug #299

uikino opened this issue Mar 21, 2022 · 3 comments
Assignees

Comments

@uikino
Copy link

uikino commented Mar 21, 2022

Bug

The C++20 P1423R2 paper make compiler compile error if source code using u8"..." string literal with -std=c++20

Suggestion

remove all u8 string literal prefix

@djowel
Copy link
Member

djowel commented Mar 21, 2022

Yes, this is a known issue. I'm not happy with suggestions yet that will satisfy both c++17 and c++20.

@djowel djowel self-assigned this Mar 21, 2022
@djowel
Copy link
Member

djowel commented Mar 21, 2022

I am OK with this solution: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1423r2.html#emulate
Are you willing to prepare a PR?

@uikino
Copy link
Author

uikino commented Apr 11, 2022

I work with Linux and do not have MSVC installed, so the solution provided in the PR can only be described as initially verified on GCC for Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants