| 1 |
// PR c++/79056 |
| 2 |
|
| 3 |
template<class> struct A {}; |
| 4 |
|
| 5 |
template<class T> void foo(A<T>=A<T>()) {} // { dg-error "'>=' should be '> =' to terminate a template argument list" } |
| 6 |
// { dg-error "expected" "" { target *-*-* } .-1 } |
| 7 |
|
| 8 |
void bar() |
| 9 |
{ |
| 10 |
foo(A<int>()); // { dg-error "" } |
| 11 |
} |