Open Quuxplusone opened 9 years ago
Bugzilla Link | PR24138 |
Status | NEW |
Importance | P normal |
Reported by | Anders Granlund (anders.granlund.0@gmail.com) |
Reported on | 2015-07-15 16:19:16 -0700 |
Last modified on | 2015-07-22 16:10:45 -0700 |
Version | trunk |
Hardware | All All |
CC | anders.granlund.0@gmail.com, david.majnemer@gmail.com, dgregor@apple.com, ditaliano@apple.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
This bug seems to be more general than struct definitions. It also exists for
variable declarations like this:
namespace X { extern int i; }
namespace N { using X::i; }
int N::i = 1;
int main() {}
The above program is ill-formed by [dcl.meaning]p1, but no error message is
given.
Disregard the previous comment. It was indented for the same bug in GCC.
This should also be ill-formed, but clang accepts it too (it an even simpler
test-case):
struct S;
namespace N { using ::S; }
struct N::S {};