Merged r158704 through r158906 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / template / spec4.C
blob18116acb52973c9e58a361a10bc5274c1edbb4bd
1 // { dg-do compile }
2 // Origin: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
4 // PR c++/2863
5 // Default function argument and template specialization.
7 struct X {
8   template <int dim> void f(int=0);
9 };
11 template <> void X::f<1> () {}  // { dg-error "(not match|declaration)" }