[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / typedef18.C
blob8ea3c736a0a26f24a557d773b4538d27c5ac01f0
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin PR c++/40007
3 // { dg-do compile }
5 template<typename T>
6 struct x
8   protected:
9   typedef int type;
12 template<typename T>
13 struct y : public x<T>
15   typename x<T>::type z;
18 template<>
19 struct y<void> : public x<void>
21   typedef x<void>::type z;
24 template class y<int>;