From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21178 invoked by alias); 15 Aug 2002 05:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 21162 invoked by uid 71); 15 Aug 2002 05:26:01 -0000 Date: Thu, 15 Aug 2002 00:06:00 -0000 Message-ID: <20020815052601.21160.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Nicola Musatti Subject: Re: c++/7176: g++ confused by friend and static member with same name Reply-To: Nicola Musatti X-SW-Source: 2002-08/txt/msg00297.txt.bz2 List-Id: The following reply was made to PR c++/7176; it has been noted by GNATS. From: Nicola Musatti To: Raoul Gough 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