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

erroneous sentence in [dcl.decl] p5 #519

Closed
cpplearner opened this issue Jul 12, 2015 · 2 comments
Closed

erroneous sentence in [dcl.decl] p5 #519

cpplearner opened this issue Jul 12, 2015 · 2 comments
Labels
cwg Issue must be reviewed by CWG.

Comments

@cpplearner
Copy link
Contributor

[dcl.decl] p5 says

The type-id in a trailing-return-type includes the longest possible sequence of _abstract-declarator_s.

However, the grammar of trailing-return-type (which is " -> trailing-type-specifier-seq abstract-declaratoropt") does not contain a type-id.

Moreover, I cannot find any ambiguity in the accompanying example. Perhaps this disambiguation rule is no longer necessary after the adoption of CWG 681.

@zygoloid
Copy link
Member

I agree that both the normative text and the example are wrong. It does look like the disambiguation rule is no longer needed, but removing a normative rule (even one that we believe has no effect) is non-editorial. I'll forward this to CWG.

@zygoloid zygoloid added the cwg Issue must be reviewed by CWG. label Jul 12, 2015
@cpplearner
Copy link
Contributor Author

Fixed by CWG 2040.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG.
Projects
None yet
Development

No branches or pull requests

2 participants