http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19377
Andrey Belevantsev <abel at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abel at gcc dot gnu.org, | |amonakov at gcc dot gnu.org --- Comment #9 from Andrey Belevantsev <abel at gcc dot gnu.org> --- Another test case of the same issue (both clang and icc compile this fine): namespace ns { class Base { public: int i; }; class Derived : public Base { using Base::i; }; } class DerivedDerived : public ns::Derived { using ns::Base::i; }; we get /tmp/ns.C:4:9: error: ‘int ns::Base::i’ is inaccessible /tmp/ns.C:10:7: error: within this context It is indeed rejects-valid but I cannot claim this is a regression as I can't find the version that did that correctly. It's 9 years of the original bugreport, maybe rise a priority?..