This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ bug] access control for types
- To: Nathan Sidwell <nathan at acm dot org>
- Subject: Re: [C++ bug] access control for types
- From: Jason Merrill <jason at cygnus dot com>
- Date: 11 Feb 2000 20:23:50 -0800
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <38A2BA9F.686B0523@acm.org>
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