https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66957
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |4.3.6 Keywords| |rejects-valid Last reconfirmed| |2015-07-21 Ever confirmed|0 |1 Summary|irregular "is protected |[4.9/5/6 Regression] |within this context" error |irregular "is protected | |within this context" error Known to fail| |4.4.7, 4.9.3, 5.1.0, 6.0 Severity|major |normal --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- class BaseClass { protected: static int x; }; struct DerivedA : BaseClass { }; struct DerivedB : BaseClass { DerivedB() { (void) DerivedA::x; } };