[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / instantiate4.C
blob732b8529de2257959ace74e41041dfc39143aaaf
1 // { dg-do compile }
3 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5 // PR c++/10682: Typedef to enum template instantiation logic.
7 template <typename T>
8 struct Foo {
9   enum E {a,b,c};
10   typedef E EE;
13 void Baz(Foo<int>::EE x);