// { dg-do assemble } // { dg-options "" } // Test for implicit typename template struct A { protected: typedef struct B { } B; }; template struct C { }; template struct D : public A > { void f () { B* new_entries = (B *) 0; // { dg-error "'B' was not declared in this scope" "B" } // { dg-error "'new_entries' was not declared in this scope" "new_entries" { target *-*-* } 18 } // { dg-error "expected" "exp" { target *-*-* } 18 } } };