[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / defarg4.C
blob30711c22c0b6a38e751225fb264390fd626bd153
1 // PR c++/14763
3 struct A { 
4   int get() const { return 0; } 
5   static A *foo(); 
6 }; 
7  
8 template<bool> struct S { 
9   S(unsigned int = A::foo()->get())  ; 
10 }; 
12 void foo() throw() { 
13   S<false> f; 
14