This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7176: g++ confused by friend and static member with same name
- From: Nicola Musatti <nmusatti at comm2000 dot it>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 15 Aug 2002 05:26:01 -0000
- Subject: Re: c++/7176: g++ confused by friend and static member with same name
- Reply-to: Nicola Musatti <nmusatti at comm2000 dot it>
The following reply was made to PR c++/7176; it has been noted by GNATS.
From: Nicola Musatti <nmusatti@comm2000.it>
To: Raoul Gough <RaoulGough@yahoo.co.uk>
Cc: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Subject: Re: c++/7176: g++ confused by friend and static member with same name
Date: Wed, 14 Aug 2002 08:26:13 +0200
Sorry for the delay in answering.
Raoul Gough wrote:
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
> r=7176
>
> Is this PR related to (or the same) as the following much simpler compile
> problem?
>
> typedef int foo;
>
> struct bar {
> foo foo;
> };
>
> $ f:/mingw/bin/g++ -c typename_reuse.cc
> typename_reuse.cc:4: declaration of `foo bar::foo'
> typename_reuse.cc:1: changes meaning of `foo' from `typedef int foo'
This has many similarities with the problem I submitted, but I don't
know enough about language details or the compiler to venture an
opinion.
Cheers,
Nicola Musatti