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

US 17-047 7.7p16.7 [expr.const] "needed for constant evalution" #489

Closed
wg21bot opened this issue Oct 30, 2022 · 2 comments · Fixed by cplusplus/draft#5987
Closed

US 17-047 7.7p16.7 [expr.const] "needed for constant evalution" #489

wg21bot opened this issue Oct 30, 2022 · 2 comments · Fixed by cplusplus/draft#5987
Labels
Milestone

Comments

@wg21bot
Copy link
Collaborator

wg21bot commented Oct 30, 2022

The criteria for a variable to be needed for constant evaluation are inconsistent with those for it to be usable in constant expressions (/4).

Proposed change:

Use "potentially-constant" in /15.7 (retaining the non-volatile restriction).

@wg21bot wg21bot added the CWG Core label Oct 31, 2022
@jensmaurer jensmaurer changed the title US 7.7p16.7 [expr.const] "needed for constant evalution" US 17-047 7.7p16.7 [expr.const] "needed for constant evalution" Nov 3, 2022
@jensmaurer jensmaurer transferred this issue from another repository Nov 3, 2022
@jensmaurer jensmaurer added this to the CD C++23 milestone Nov 3, 2022
@jensmaurer
Copy link
Member

CWG2647

@jensmaurer
Copy link
Member

jensmaurer commented Nov 8, 2022

CWG 2022-11-08: Accepted with Modifications. See CWG2647 for details.

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

Successfully merging a pull request may close this issue.

2 participants