This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [C++ bug] access control for types


Nathan Sidwell <nathan@acm.org> writes:

> which refers to the non-inline definition of Derived::Nested::Foo.
> The inline definition of Derived::Nested::Bar does not give a diagnostic.
> Whatever you think of the following, both Bar and Foo should give no
> error or the same error.

Oops; I was failing to process the types used in member declarations.

> I beleive the diagnostic incorrect, and that Derived::Nested::Foo
> can use Base::Some_t.

I agree, though I note that this bug is not specific to types; g++
gives the same error for references to a static data member of Base.
I'll have a fix shortly.

Jason

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]