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

[dcl.init.ref] Avoid 'value of the expression' #4804

Merged
merged 1 commit into from Sep 25, 2021

Conversation

jensmaurer
Copy link
Member

when the properties of the expression are still relevant.

Fixes #4753

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 9, 2021

Hm, I think this is reasonable, but I'd welcome another CWG opinion on this. For example, are we implying here that "value" should generally be understood to imply lvalue-to-rvalue conversion, and we need to review the standard for other such uses, rather than, say, considering every evaluated expression to constitute a value (of the expression's value category)?

@jensmaurer
Copy link
Member Author

I think the use of "value" is simply misleading in this particular case. We use "value" for quite a few things in the standard, including the "value" of template parameters (such a value might be a type). In this case, we're just looking at the expression and should avoid any idea that we're prematurely runtime-evaluating that expression in any way. I don't think a full-scope review is in order for these things; the entire [expr] section could do with a brush-up, but that's probably too large to cover in an editorial issue.

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 9, 2021

I just meant another opinion by someone from CWG, not necessarily by the actual group. Let me ask around.

source/declarations.tex Outdated Show resolved Hide resolved
when the properties of the expression are still relevant.
Also avoid "result of the conversion".
@jensmaurer
Copy link
Member Author

Fixed.

@tkoeppe tkoeppe merged commit a054daf into cplusplus:main Sep 25, 2021
@jensmaurer jensmaurer deleted the c23 branch September 25, 2021 19:07
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.

A lvalue-to-rvalue conversion is not necessary to be required in [dcl.init.ref#5.3]
3 participants