]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.old-deja/g++.pt/defarg13.C
pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned...
[gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / defarg13.C
CommitLineData
9188c363
MM
1// Build don't link:
2// Origin: Mark Mitchell <mark@codesourcery.com>
3
4template <class T>
5void f (int i)
6{
7 struct S { void g (int j = i) {} }; // ERROR - default argument uses local
8
9 S s; // ERROR - instantiated here
10}
11
12template void f<double>(int); // ERROR - instantiated here
13
This page took 0.625207 seconds and 5 git commands to generate.