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

[conv.lval] Move a misplaced note #2079

Closed
wants to merge 1 commit into from

Conversation

languagelawyer
Copy link
Contributor

@languagelawyer languagelawyer commented May 22, 2018

Not sure should the Note follow the Example or vice versa.

@cpplearner
Copy link
Contributor

cpplearner commented May 22, 2018

I think the note is in the right place. From CWG 2140:

The current rules in 4.1 [conv.lval] paragraph 2 do not require fetching the value in memory of an object of type std::nullpt_t in order to produce its prvalue. This choice has implications that may not have been considered for questions like whether use of a std::nullptr_t that is an inactive member of a union results in undefined behavior or whether a volatile std::nullptr_t variable in a discarded-value expression produces a side effect.

The rules are now in paragraph 3, but otherwise this comment still apply.

@languagelawyer languagelawyer deleted the patch-1 branch May 22, 2018 04:39
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.

None yet

2 participants