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
Fix lambda-declarator #2333
Fix lambda-declarator #2333
Conversation
The following code is well-formed. ``` [] () constexpr [[using std:]] noexcept {}; ``` But the following code is currently ill-formed. ``` [] () [[using std:]] noexcept {}; ``` I think it should be well-formed.
I think this is not a correct change: attributes go after the noexcept-specifier, not before. However, there are two bugs here:
The fix would be to stop reusing decl-specifier-seq here, but this doesn't seem editorial to me. |
More bugs caused by the reuse of decl-specifier-seq:
|
I think we simply should stop using decl-specifier_seq for lambdas. It was cute when constexpr was introduced, but the fall-out is scary plus we never actually refer to this as a decl-specifier-seq in the text that follows. |
I have created a clean-up patch; see #2338. I hope to get CWG to review the issue in San Diego. |
@jensmaurer: does https://wg21.link/p1102r2 fix the underlying issue? |
Yes, the original issue is fixed with P1102R2. The decl-specifier-seq concerns will be addressed by #2338. |
The following code is well-formed.
But the following code is currently ill-formed.
I think it should be well-formed.