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

[dcl.fct] Overbroad grammar for parameter-declaration CWG2537 #4521

Open
opensdh opened this issue Feb 25, 2021 · 7 comments
Open

[dcl.fct] Overbroad grammar for parameter-declaration CWG2537 #4521

opensdh opened this issue Feb 25, 2021 · 7 comments
Labels
cwg Issue must be reviewed by CWG. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.

Comments

@opensdh
Copy link
Contributor

opensdh commented Feb 25, 2021

It should have a defining-type-specifier-seq instead of a decl-specifier-seq, since no other decl-specifier (a storage-class-specifier, a function-specifier, friend, typedef, constexpr, consteval, constinit, or inline) can be used there (unless we expect to get constexpr function parameters any day now!).

@cpplearner
Copy link
Contributor

In the past the auto and register storage-class-specifiers were permitted. Nowadays neither is a storage-class-specifier.

@jensmaurer
Copy link
Member

@zygoloid , any opinion here?
@tkoeppe, changing the grammar is not prima facie editorial, I believe.

@jensmaurer jensmaurer added the decision-required A decision of the editorial group (or the Project Editor) is required. label Feb 25, 2021
@jensmaurer jensmaurer changed the title Overbroad grammar for parameter-declaration [dcl.fct] Overbroad grammar for parameter-declaration Feb 25, 2021
@tkoeppe
Copy link
Contributor

tkoeppe commented Feb 25, 2021

I'd welcome at least a bit of CWG consensus. Is this something you could look at during a telecon? I wouldn't want to make such a change without any oversight, but if CWG says OK then we don't need to create an issue.

@tkoeppe tkoeppe added the cwg Issue must be reviewed by CWG. label Feb 25, 2021
@jensmaurer
Copy link
Member

Editorial meeting 2021-04-16: This is not editorial.

@jensmaurer jensmaurer added not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking. and removed decision-required A decision of the editorial group (or the Project Editor) is required. labels Apr 16, 2021
@tkoeppe
Copy link
Contributor

tkoeppe commented Apr 16, 2021

@tkoeppe to email CWG.

@jensmaurer
Copy link
Member

See cplusplus/CWG#7

@jensmaurer jensmaurer changed the title [dcl.fct] Overbroad grammar for parameter-declaration [dcl.fct] Overbroad grammar for parameter-declaration CWG2537 Feb 23, 2022
@jensmaurer
Copy link
Member

Created CWG2537

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. not-editorial Issue is not deemed editorial; the editorial issue is kept open for tracking.
Projects
None yet
Development

No branches or pull requests

4 participants