/* PR c++/38646 */ /* { dg-do compile } */ /* { dg-options "-std=c++0x" } */ template struct A; template struct A /* { dg-error "must be at the end" } */ { template struct B; template struct B {}; };