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

[basics.pre] opaque-enum-declaration is not a declaration #6751

Closed
h0nzZik opened this issue Dec 29, 2023 · 3 comments
Closed

[basics.pre] opaque-enum-declaration is not a declaration #6751

h0nzZik opened this issue Dec 29, 2023 · 3 comments

Comments

@h0nzZik
Copy link

h0nzZik commented Dec 29, 2023

6.2.2 explicitly says that opaque-enum-declaration does not define any entity. However, this seems redundant, as 6.1.5 does not include opaque-enum-declaration among declarations. Suggested fix: make opaque-enum-declaration a declaration.

@h0nzZik
Copy link
Author

h0nzZik commented Dec 29, 2023

There are multiple other things in the list of 6.2.2 that are not in 6.1.5 - for example, static_assert-declaration and using-enum-declaration.

@cpplearner
Copy link
Contributor

An opaque-enum-declaration is a block-declaration and thus is a declaration.

@h0nzZik
Copy link
Author

h0nzZik commented Dec 29, 2023

Oh, as well as all the other examples I had in mind.

@h0nzZik h0nzZik closed this as completed Dec 29, 2023
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