[C++ bug] access control for types

Jason Merrill jason@cygnus.com
Sat Feb 12 00:51:00 GMT 2000


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


More information about the Gcc-bugs mailing list