Skip to content

[expr.prim.id.unqual] name of coroutine parameter copy inside a lambda #674

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

Open
t3nsor opened this issue Feb 24, 2025 · 0 comments
Open

Comments

@t3nsor
Copy link

t3nsor commented Feb 24, 2025

Full name of submitter: Brian Bi

Issue description: After P2900R14, in cases where [expr.prim.id.unqual]/3+a applies, we do not fall through to 3+b, which says that the result of the unqualified-id is the parameter copy. Therefore, the result now refers to the original parameter.

Suggested resolution: We should keep all the description of what entity the unqualified-id refers to in p3.

Edit [expr.prim.id.unqual]/3:

The result is the entity denoted by the unqualified-id ([basic.lookup.unqual]), except that if that entity is a coroutine parameter, the result is instead the copy of that parameter ([dcl.fct.def.coroutine]).

Edit [expr.prim.id.unqual]/3+b:

Otherwise, if the unqualified-id names entity is the copy of a coroutine parameter, the type of the expression is that of the copy of the parameter ([dcl.fct.def.coroutine]), and the result is that copy. the type of the entity.

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

No branches or pull requests

1 participant