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

clang allows redeclaration of static data member #8342

Closed
akyrtzi opened this issue Aug 23, 2010 · 3 comments
Closed

clang allows redeclaration of static data member #8342

akyrtzi opened this issue Aug 23, 2010 · 3 comments
Labels
accepts-invalid bugzilla Issues migrated from bugzilla c++

Comments

@akyrtzi
Copy link
Contributor

akyrtzi commented Aug 23, 2010

Bugzilla Link 7970
Resolution FIXED
Resolved on Aug 30, 2010 09:34
Version trunk
OS All
CC @DougGregor

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;
^

@llvmbot
Copy link
Collaborator

llvmbot commented Aug 25, 2010

This should be an easy fix - and I'm working on fixing this.

Thanks for bringing it to my attention Argyrios via email.

@llvmbot
Copy link
Collaborator

llvmbot commented Aug 25, 2010

This should be an easy fix - and I'm working on it.

Thanks for bringing it to my attention Argyrios via email.

@DougGregor
Copy link
Contributor

Fixed in Clang r112476, by Faisal Vali!

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepts-invalid bugzilla Issues migrated from bugzilla c++
Projects
None yet
Development

No branches or pull requests

3 participants