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

CWG2733 Applying [[maybe_unused]] to a label #1585

Closed
jensmaurer opened this issue Jul 14, 2023 · 2 comments · Fixed by cplusplus/draft#6684
Closed

CWG2733 Applying [[maybe_unused]] to a label #1585

jensmaurer opened this issue Jul 14, 2023 · 2 comments · Fixed by cplusplus/draft#6684
Labels
C++26 Targeted at C++26 CWG Core plenary-approved Papers approved for inclusion in their target vehicle by plenary vote.
Projects

Comments

@jensmaurer
Copy link
Member

Both gcc and clang accept [[maybe_unused]] on an identifier label.

This seems to be a small extension that improves consistency of the language; EWG is asked to approve.

See CWG2733 for details including CWG-approved wording.

@jensmaurer jensmaurer added the EWG Evolution label Jul 14, 2023
@erichkeane
Copy link
Collaborator

EWG discussed CWG2733 during the Tuesday Morning session in Kona. The following poll was taken.

CWG2733 "Applying [[maybe_unused]] to a label" accept the proposed resolution, forward to CWG for inclusion in C++26.

SF F N A SA
5 12 3 0 0

Result: Consensus

@erichkeane erichkeane added CWG Core and removed EWG Evolution labels Nov 7, 2023
@jensmaurer jensmaurer added this to Ready for review in CWG Nov 7, 2023
@jensmaurer jensmaurer moved this from Ready for review to Approved for plenary vote in CWG Nov 8, 2023
@jensmaurer jensmaurer added the C++26 Targeted at C++26 label Nov 8, 2023
@jensmaurer
Copy link
Member Author

CWG 2023-11-07: Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++26 Targeted at C++26 CWG Core plenary-approved Papers approved for inclusion in their target vehicle by plenary vote.
Projects
CWG
Approved for plenary vote
Development

Successfully merging a pull request may close this issue.

2 participants