| 1 |
// { dg-do compile } |
| 2 |
// Origin: Wolfgang Bangerth <[email protected]> |
| 3 |
|
| 4 |
// PR c++/2863 |
| 5 |
// Default function argument and template specialization. |
| 6 |
|
| 7 |
struct X { |
| 8 |
template <int dim> void f(int=0); |
| 9 |
}; |
| 10 |
|
| 11 |
template <> void X::f<1> () {} // { dg-error "(not match|declaration)" } |