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

Return type/expression mismatch #331

Closed
garfen opened this issue Jun 19, 2014 · 1 comment
Closed

Return type/expression mismatch #331

garfen opened this issue Jun 19, 2014 · 1 comment

Comments

@garfen
Copy link

garfen commented Jun 19, 2014

The last member function, m(), in the example N3936 [class.local] p1 should return "const int*" in order to make it a bit clearer that the ill-formed odr-use is the intent of the example, not any mismatch in the return type/expression.

@jensmaurer
Copy link
Member

The "int m()" part of the example is actually well-formed these days (it's not an odr-use of N), and the code looks type-correct here.

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

2 participants