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

[expr.typeid] Add a note covering abominable function types as type-id #3260

Closed
AlisdairM opened this issue Oct 2, 2019 · 0 comments · Fixed by #3263
Closed

[expr.typeid] Add a note covering abominable function types as type-id #3260

AlisdairM opened this issue Oct 2, 2019 · 0 comments · Fixed by #3263
Assignees

Comments

@AlisdairM
Copy link
Contributor

[expr.typeid]p4 describes the rules of applying the typeid operator to a type-id (rather than an expression). It explicitly disallows incomplete class types, and references to such. This appears to be the only invalid type-id for the operator, but in fact abominable function types are also disallowed, as the typeid operator is not listed as a permitted context in [dcl.fct]p6.

We should add a note (not duplicate normative text) to cross-reference this second category of rejected types, as I believe it is the only other category of unsupported types for this operator, and otherwise the rule in [expr.typeid] looks complete.

@jensmaurer jensmaurer changed the title [expr.typeid] Add a note covering abominable function types as typed-id [expr.typeid] Add a note covering abominable function types as type-id Oct 2, 2019
@jensmaurer jensmaurer self-assigned this Oct 2, 2019
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

Successfully merging a pull request may close this issue.

2 participants