// PR c++/34089 // { dg-do compile } // { dg-options "" } template void foo () { } template struct foo { }; // { dg-error "redeclared as" }