| 1 |
// PR c++/122192 |
| 2 |
// Verify name lookup within a base-specifier is type-only. |
| 3 |
|
| 4 |
struct A { |
| 5 |
int B; |
| 6 |
struct B { }; |
| 7 |
}; |
| 8 |
|
| 9 |
struct S1 : A::B { }; // OK |
| 10 |
|
| 11 |
template<class T> struct S2 : T::B { // OK, used to fail |
| 12 |
S2() : T::B() { } // Also OK |
| 13 |
}; |
| 14 |
template struct S2<A>; |