summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/defarg14.C
blob: 1fe87e39dc714a8b00657355bf2c31420b35ba56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/46129
// The default argument for A<int>::B::operator() should not be instantiated

template <class T>
struct A {
  struct B {
    void operator () (const T& d_ = f(T()) ) { }
  };
};

int main() {
  A<int>::B b;
}