1 // PR c++/27211
2 
3 struct A {}; // { dg-message "defined here" }
4 
5 template<int> void A::foo(); // { dg-error "no declaration matches" }
6 // { dg-message "no functions named" "note" { target *-*-* } .-1 }
7