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

C++23 z/Z suffix (for clang/gcc modes) #10190

Closed
ilobilo opened this issue Nov 25, 2022 · 4 comments
Closed

C++23 z/Z suffix (for clang/gcc modes) #10190

ilobilo opened this issue Nov 25, 2022 · 4 comments
Labels
enhancement Improvement to an existing feature fixed Check the Milestone for the release in which the fix is or will be available. Language Service Visual Studio Inherited from Visual Studio
Milestone

Comments

@ilobilo
Copy link

ilobilo commented Nov 25, 2022

Feature Request

C++23 adds support for z/Z and zu/ZU suffixes to integer literals (signed size_t and size_t)
I can enable C++23 from vscode settings but if I try to use z suffix, vscode shows this error:

user-defined literal operator not found

for example:

auto a = -123z; // signed size_t
auto b = 321zu; // size_t
@Zingam
Copy link

Zingam commented Nov 27, 2022

C++23 is not supported yet.

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Nov 28, 2022

@ilobilo Yeah, same issue as #9878 . You can check https://en.cppreference.com/w/cpp/23 for the progress, in particular the "EDG eccp" column will need to add support for Literal suffix for (signed) size_t and then it may take some time for us to get those changes integrated/shipped.

@sean-mcmanus sean-mcmanus closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2023
@sean-mcmanus sean-mcmanus reopened this Apr 21, 2023
@sean-mcmanus sean-mcmanus added Language Service enhancement Improvement to an existing feature labels Apr 21, 2023
@sean-mcmanus sean-mcmanus added this to the 1.16.0 milestone Apr 21, 2023
@sean-mcmanus sean-mcmanus added the Visual Studio Inherited from Visual Studio label Apr 21, 2023
@sean-mcmanus sean-mcmanus changed the title C++23 z/Z suffix C++23 z/Z suffix (for clang/gcc modes) May 15, 2023
@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label May 15, 2023
@michelleangela
Copy link
Contributor

@michelleangela
Copy link
Contributor

Fix is now available in release version 1.16.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement to an existing feature fixed Check the Milestone for the release in which the fix is or will be available. Language Service Visual Studio Inherited from Visual Studio
Projects
None yet
Development

No branches or pull requests

4 participants