Skip to content

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

Closed
@Eelis

Description

@Eelis
Contributor

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 :)

Activity

jensmaurer

jensmaurer commented on Feb 27, 2017

@jensmaurer
Member

This looks like a core issue to me.

Eelis

Eelis commented on Jul 7, 2017

@Eelis
ContributorAuthor

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

jensmaurer

jensmaurer commented on Feb 17, 2018

@jensmaurer
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.

self-assigned this
on Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cwgIssue must be reviewed by CWG.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @Eelis@jensmaurer

      Issue actions

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