diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-07-06 01:45:27 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-07-06 01:45:27 +0000 |
commit | 88fe69ce210ecbec9f4850aed2c56074ef310437 (patch) | |
tree | e4856ac18a5b883c9b935d133bda1ec4286d9b95 /clang/test/SemaTemplate/injected-class-name.cpp | |
parent | a60a6db73f36f72ed7ad1474b713630d938c42eb (diff) | |
download | bcm5719-llvm-88fe69ce210ecbec9f4850aed2c56074ef310437.tar.gz bcm5719-llvm-88fe69ce210ecbec9f4850aed2c56074ef310437.zip |
DR1909: Diagnose all invalid cases of a class member sharing its name with the class.
llvm-svn: 241425
Diffstat (limited to 'clang/test/SemaTemplate/injected-class-name.cpp')
-rw-r--r-- | clang/test/SemaTemplate/injected-class-name.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/injected-class-name.cpp b/clang/test/SemaTemplate/injected-class-name.cpp index 4c21d2585d3..7349fdf392d 100644 --- a/clang/test/SemaTemplate/injected-class-name.cpp +++ b/clang/test/SemaTemplate/injected-class-name.cpp @@ -60,3 +60,9 @@ namespace ForwardDecls { typename xt::foo *t; }; } + +namespace ConflictingRedecl { + template<typename> struct Nested { + template<typename> struct Nested; // expected-error {{member 'Nested' has the same name as its class}} + }; +} |