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
Accepts-invalid with dependent name not prefixed with typename #17283
Comments
This can also cause assertion failures or generate invalid IR:
|
This is also tracked as rdar://problem/19438432. Ben proposed a patch: |
Diagnostics is emitted since Clang 5: https://godbolt.org/z/1K786Tan4 |
The following still crashes:
|
Crash appears to be fixed in Clang 5: https://godbolt.org/z/bbsvE68MT |
@llvm/issue-subscribers-clang-frontend |
I think what happened is that we added a check to reject this... but when we implemented the C++20 typename rules in https://reviews.llvm.org/D53847, the check was relaxed, so this issue showed up again. |
Extended Description
Testcase:
We should print an error about the missing typename and template keywords.
The text was updated successfully, but these errors were encountered: