https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90107
Bug ID: 90107 Summary: rejects-valid on global-namespace-qualified variable declared after class definition Product: gcc Version: unknown Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: richard-gccbugzilla at metafoo dot co.uk Target Milestone: --- GCC rejects these valid examples, producing a bogus "expected ';' after struct definition" diagnostic: struct A; namespace N { extern A a; } struct A {} ::N::a; struct A; struct B { static A a; }; struct A {} ::B::a; (I just fixed a rejects-valid on the same cases in Clang.)