We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26abaa commit 3f6984cCopy full SHA for 3f6984c
clang/test/CXX/temp/temp.res/temp.dep/temp.dep.type/p4.cpp
@@ -371,3 +371,24 @@ namespace N1 {
371
}
372
};
373
} // namespace N1
374
+
375
+namespace N2 {
376
+ template<typename T>
377
+ struct A {
378
+ struct B {
379
+ using C = A;
380
381
+ void not_instantiated(A *a, B *b) {
382
+ b->x; // expected-error{{no member named 'x' in 'N2::A::B'}}
383
+ b->B::x; // expected-error{{no member named 'x' in 'N2::A::B'}}
384
+ a->B::C::x; // expected-error{{no member named 'x' in 'A<T>'}}
385
+ }
386
+ };
387
388
389
+ b->x;
390
+ b->B::x;
391
+ a->B::C::x;
392
393
394
+}
0 commit comments