// { dg-options "-w" } template void foo(T); // { dg-message "candidate" } void bar() { int i; int A[i][i]; foo(A); // { dg-error "" } }