We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
struct S { static int val; static int val; };
clang compiles the above sample without complaints. It should say something like:
t2.cpp:3:9: error: duplicate member 'val' static int val; ^ t2.cpp:2:9: note: previous declaration is here static int val; ^
The text was updated successfully, but these errors were encountered:
This should be an easy fix - and I'm working on fixing this.
Thanks for bringing it to my attention Argyrios via email.
Sorry, something went wrong.
This should be an easy fix - and I'm working on it.
Fixed in Clang r112476, by Faisal Vali!
No branches or pull requests
Extended Description
struct S {
static int val;
static int val;
};
clang compiles the above sample without complaints.
It should say something like:
t2.cpp:3:9: error: duplicate member 'val'
static int val;
^
t2.cpp:2:9: note: previous declaration is here
static int val;
^
The text was updated successfully, but these errors were encountered: