1 2 3 4 5 6 7 8 9 10
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de> // PR c++/18731 struct A { struct B; typedef B C; }; struct A::C {}; // { dg-error "invalid class name" }