This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7176: g++ confused by friend and static member with same name
- From: "Raoul Gough" <RaoulGough at yahoo dot co dot uk>
- To: <gcc-gnats at gcc dot gnu dot org>,<gcc-prs at gcc dot gnu dot org>,<gcc-bugs at gcc dot gnu dot org>,<nobody at gcc dot gnu dot org>,<nmusatti at comm2000 dot it>
- Date: Sat, 3 Aug 2002 16:04:12 +0100
- Subject: Re: c++/7176: g++ confused by friend and static member with same name
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'
BTW, I don't write code like that myself - it's representative of some code
in the Microsoft DirectX samples.
Regards,
Raoul Gough.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com