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.const] Check the result object of a prvalue #6267

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frederick-vs-ja
Copy link
Contributor

Fixes #5422.

The remain issue (modulo CWG2558) is that we shouldn't imply a prvalue is an object, which is not true since C++17.

@lprv
Copy link
Contributor

lprv commented Jun 5, 2023

A prvalue may not have a result object, at least in the scalar case.

@frederick-vs-ja
Copy link
Contributor Author

A prvalue may not have a result object, at least in the scalar case.

Although temporary materialization doesn't happen in some cases, I think it's harmless to require the result object for the purpose of checking whether the prvalue is a constant expression.

@wg21bot wg21bot added the needs rebase The pull request needs a git rebase to resolve merge conflicts. label Apr 19, 2024
@frederick-vs-ja
Copy link
Contributor Author

Rebased & force-pushed. @jensmaurer @tkoeppe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs rebase The pull request needs a git rebase to resolve merge conflicts.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[dcl.constexpr] Uninitialized non-static data members of fundamental type CWG2558
3 participants