// Test to make sure we do not ICE on this invalid program. template void foo(struct {}*); // { dg-message "" } void bar() { foo<0>(0); // { dg-error "" } // { dg-message "candidate" "candidate note" { target *-*-* } 8 } }