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

[expr.ass] Clarify type of assignment-expression #4865

Merged
merged 1 commit into from Sep 9, 2021

Conversation

jensmaurer
Copy link
Member

Fixes #4864

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 9, 2021

Could you please add a tiny bit of motivation/background to a second paragraph in the commit message, as discussed in the linked issue? Then feel free to commit. Thanks!

An expression has a type and a value category.
This particular compound-expression was missing the
specification of its (result) type.
@jensmaurer
Copy link
Member Author

@tkoeppe: better?

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 9, 2021

Yes, nice, thanks!

@tkoeppe tkoeppe merged commit 28aa519 into cplusplus:main Sep 9, 2021
@languagelawyer
Copy link
Contributor

So, nobody cares about "result" misuse?

@jensmaurer jensmaurer deleted the c48 branch September 9, 2021 19:58
Comment on lines 6841 to +6842
require a modifiable lvalue as their left operand; their result is an lvalue
referring to the left operand. The result in all cases is a bit-field if
of the type of the left operand, referring to the left operand. The result in all cases is a bit-field if
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
require a modifiable lvalue as their left operand; their result is an lvalue
referring to the left operand. The result in all cases is a bit-field if
of the type of the left operand, referring to the left operand. The result in all cases is a bit-field if
require a modifiable lvalue as their left operand; they are lvalues
of the type of the left operand, denoting the result of the left operand. The result in all cases is a bit-field if

mebby this?

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 this pull request may close these issues.

[expr.ass] does not specify the type of the expression (and traditionally misuses "result")
3 participants