OSDN Git Service

PR c++/20669
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg13.C
1 // { dg-do assemble  }
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 template <class T>
5 void f (int i)
6 {
7   struct S { void g (int j = i) {} }; // { dg-error "" } default argument uses local
8
9   S s;
10 }
11
12 template void f<double>(int);
13