diff options
Diffstat (limited to 'test/SemaTemplate/instantiate-field.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-field.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-field.cpp b/test/SemaTemplate/instantiate-field.cpp index a260635..d825cd7 100644 --- a/test/SemaTemplate/instantiate-field.cpp +++ b/test/SemaTemplate/instantiate-field.cpp @@ -81,3 +81,12 @@ namespace PR7123 { sort(x,x); } } + +namespace PR7355 { + template<typename T1> class A { + class D; // expected-note{{declared here}} + D d; //expected-error{{implicit instantiation of undefined member 'PR7355::A<int>::D'}} + }; + + A<int> ai; // expected-note{{in instantiation of}} +} |