-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[clang] Ungrammatical "a enum specifier" error message #94443
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
Comments
Hi! This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below. |
@llvm/issue-subscribers-good-first-issue Author: Rajveer Singh Bharadwaj (Rajveer100)
Clang throws ungrammatical error message for alias.
Old: error: type alias 'A' cannot be referenced with a enum specifier New: error: alias 'A' cannot be referenced with the 'enum' specifier This can be changed similarly for other cases as well. |
I would like to take that :) |
I am new here, but the error message seems to be correct as A is a type alias here. But as I can see, it is being changed to alias. Please correct me if I am wrong. @Rajveer100 |
@akshaykumars614 |
For the new snippet in the description, it would be applicable: template<class T> using A = int;
struct A s; Old: type alias template 'A' cannot be referenced with a struct specifier
New: alias template 'A' cannot be referenced with the 'struct' specifier |
@Rajveer100 is the change from old to new just a grammar change or do I have to change the analysis?
|
It's a grammatical change. |
Clang throws ungrammatical error message for alias.
GodBolt
Old:
New:
This can be rephrased for other cases as well, ex:
The text was updated successfully, but these errors were encountered: