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

[stmt.while] Equivalence given for "while (T t = x)" should also cover "while (T t{...})"? #1485

Closed
Eelis opened this issue Feb 24, 2017 · 4 comments
Assignees
Labels
cwg Issue must be reviewed by CWG.

Comments

@Eelis
Copy link
Contributor

Eelis commented Feb 24, 2017

6.5.1/2 states:

A while statement of the form while (T t = x) statement is equivalent to [...]

These days a declaration condition can also have the form T t{...}. Presumably the equivalence is also intended to apply when the condition has that form. In that case, I suppose this might meet the criterion for an editorial issue:

Problems with the presentation of the specification, which, when fixed, would not alter the (intended) meaning of the specification.

But I'm not sure :)

@jensmaurer
Copy link
Member

This looks like a core issue to me.

@jensmaurer jensmaurer added the cwg Issue must be reviewed by CWG. label Feb 27, 2017
@jensmaurer
Copy link
Member

@Eelis
Copy link
Contributor Author

Eelis commented Jul 7, 2017

@jensmaurer Is the issue perhaps on one of the public issue lists by now?

@jensmaurer
Copy link
Member

The existing "of the form T t = x" text also has the problem that "of the form" doesn't fit if T is a function type, i.e. the declarator-id is somewhere nested.

@jensmaurer jensmaurer self-assigned this Feb 17, 2018
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