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.ambig.res] example has two declarations of 'y' #6386

Closed
rogerorr opened this issue Jul 18, 2023 · 0 comments · Fixed by #6387
Closed

[dcl.ambig.res] example has two declarations of 'y' #6386

rogerorr opened this issue Jul 18, 2023 · 0 comments · Fixed by #6387

Comments

@rogerorr
Copy link
Contributor

There are two declarations for y in the example in [dcl.ambig.res]

void foo(double a) {
  S w(int(a));                  // function declaration
  S x(int());                   // function declaration
  S y((int(a)));                // object declaration
  S y((int)a);                  // object declaration
  S z = int(a);                 // object declaration
  S a(B()->C);                  // object declaration
  S b(auto()->C);               // function declaration
}
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 a pull request may close this issue.

1 participant