1 // RUN: clang-cc -fsyntax-only -verify %s
3 template<typename T> struct A {
8 template<typename T> struct B : A<T> {
12 using A<T>::foo; // expected-error{{no member named 'foo'}}
13 using A<double>::f; // expected-error{{using declaration refers into 'A<double>::', which is not a base class of 'B'}}
16 B<int> a; // expected-note{{in instantiation of template class 'struct B<int>' requested here}}
18 template<typename T> struct C : A<T> {
24 template <typename T> struct D : A<T> {
30 template<typename T> void D<T>::f() { }
32 template<typename T> struct E : A<T> {