aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/defarg13.C
blob: 1082bf567e0a64e6b6533c45c48ea92508c7a212 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build don't link:
// Origin: Mark Mitchell <mark@codesourcery.com>

template <class T>
void f (int i)
{
  struct S { void g (int j = i) {} }; // ERROR - default argument uses local

  S s; // ERROR - instantiated here
}

template void f<double>(int); // ERROR - instantiated here