https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90107
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |4.6.4 Summary|rejects-valid on |[9/10/11/12 Regression] |global-namespace-qualified |rejects-valid on |variable declared after |global-namespace-qualified |class definition |variable declared after | |class definition Known to work| |4.1.2, 4.4.7, 4.5.3 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Full valid testcase (instead of 2 sources combined together): struct A; namespace N { extern A a; } struct A {} ::N::a; struct A1; struct B { static A1 a1; }; struct A1 {} ::B::a1;