1 namespace N 2 { 3 struct A; // { dg-message "previous declaration" } 4 } 5 6 template<int I> 7 struct N::A {}; // { dg-error "redeclared" } 8