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
[expr.ass] CWG 2399: What's "the expression"? #720
Comments
Are you sure? Doesn't it refer to the assignment expression as a whole? The expression |
The assignment expression as a whole is an lvalue referring to the left operand. |
This sounds like a core issue. How does one turn an edit issue into a core issue? |
@burblebee: I think you wait until a friendly person (hello @zygoloid) emails the issue to the Core chair... :-) |
We had a couple of instances already where the introduction of brace-init-lists in various contexts technically invalidated descriptions talking about "expressions". It seems very obvious what is meant here (= "right operand"), so I believe this could be handled editorially. For @zygoloid to decide, of course. |
The current proposed solution doesn't work, because a braced-init-list does not have a value. So the description needs to distinguish between operands that have a value, and those that are described by p9. From a discussion with @zygoloid:
|
Posted to the core reflector so that we get a core issue: http://lists.isocpp.org/core/2016/12/1382.php |
See also CWG 1542. |
Handled by CWG 2399. |
Fixed by 9700b13 (Nov 2019). |
[expr.ass]/2,3,6 contains several references to "the expression":
Clearly it's meant to refer to the right operand, i.e., the initializer-clause, but that's not necessarily an expression, and in any event the reference is unclear just reading the text.
The text was updated successfully, but these errors were encountered: