| 1 |
// { dg-options "-w" } |
| 2 |
|
| 3 |
template<typename T> void foo(T); // { dg-message "note" } |
| 4 |
|
| 5 |
void bar() |
| 6 |
{ |
| 7 |
int i; |
| 8 |
int A[i][i]; |
| 9 |
foo(A); // { dg-error "" } |
| 10 |
// { dg-message "(candidate|not a valid template argument)" "candidate note" { target *-*-* } .-1 } |
| 11 |
} |