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

Should [basic.lval] p9 note refer to [expr.type] not [expr.prop] ? #3287

Closed
jwakely opened this issue Oct 10, 2019 · 1 comment · Fixed by #3288
Closed

Should [basic.lval] p9 note refer to [expr.type] not [expr.prop] ? #3287

jwakely opened this issue Oct 10, 2019 · 1 comment · Fixed by #3288
Assignees

Comments

@jwakely
Copy link
Member

jwakely commented Oct 10, 2019

In 7.2.1 [basic.lval] p9 we have a cross-reference to the parent subclause:

[ Note: A glvalue may have complete or incomplete non-void type. Class and array prvalues can have cv-qualified types; other prvalues always have cv-unqualified types. See 7.2 [expr.prop]. — end note]

This was reasonable when 3.10 [basic.lval] was in a completely different Clause from 5 [expr] and said "See Clause 5", but they are now siblings, and referring to the parent is not very helpful. Telling me to see 7.2 when I'm reading 7.2 doesn't help me.

Should it refer to 7.2.2 [expr.type], which contains the relevant rule that used to be in [expr]?

If a prvalue initially has the type “cv T”, where T is a cv-unqualified non-class, non-array type, the type of the expression is adjusted to T prior to any further analysis.

@jwakely
Copy link
Member Author

jwakely commented Oct 10, 2019

N.B. this problem seems to have been caused by the rule being in a hanging paragraph previously, so there was no way to refer to the relevant part of Clause 5 [expr]. It's no longer hanging, and we can refer to it more precisely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants