[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / pr71406.C
blob3629d7a867cfd91e853c45c0e4f9dacbfccbdebc
1 // { dg-do compile }
2 // PR c++/71406 ICE with X::template Name
4 template < typename T >
5 struct C : T
7   void foo () { this->C::template bar <>; }
8 };
10 template < typename T >
11 struct A
12
13   template < void (T::*Fn) () > void f () {}
16 template < typename T > struct B : A < B < T > >
17
18   void g ()
19   { 
20     this->B::template f < &B < T >::g > ();
21   }
24 void Foo ()
25
26   B < int > b;
27   b.g ();