[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / using18.C
blobb4ef6df478c34ce742e4bfbaad776c82149a7c51
1 // PR c++/23211
2 // { dg-do compile }
4 template<class T>
5 struct foo 
7   typedef int jtype;
8   struct bar 
9   {
10     using typename foo<T>::jtype; // { dg-error "not a base type" }
11     using foo<T>::jtype; // { dg-error "not a base type" }
12   };
15 template <class T>
16 struct A : T
18     using T::i;
19     using typename T::type;
22 struct B1 {};
23 template <class T> struct B2 {};
25 template <class T>
26 struct C : B1, B2<T>
28     using B1::x; // { dg-error "no member" }
29     using B2<T>::y;
30     using typename B2<T>::type;