aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/defarg4.C
blob: 293538adbd15b5fe069d9c89f3f3eafb1409ca57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/14763

struct A { 
  int get() const {} 
  static A *foo(); 
}; 
 
template<bool> struct S { 
  S(unsigned int = A::foo()->get())  ; 
}; 
 
void foo() throw() { 
  S<false> f; 
}