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]
Other format: [Raw text]

Re: c++/7176: g++ confused by friend and static member with same name


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


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