http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47144
--- Comment #4 from Johannes Schaub <schaub.johannes at googlemail dot com> 2011-01-01 18:41:53 UTC --- (In reply to comment #3) > (In reply to comment #2) > > > what 4.6.0 version are you using? > > > > Hmm, "4.6.0 20101113 (experimental)". > > Ah, maybe that accepted it, but current 4.6 rejects it. > I assume it was changed by Nathan Froyd's recent changes to diagnostics about > missing ';' after a class definition. > Ah I see. Have you found any combination of this that fails on trunk? Could be worth putting it here. Maybe adding declarators prevents it from wanting to see a semicolon? template<typename> struct A { }; A< struct B { }* >::SomeNonSense int y; Thanks!