From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7826 invoked by alias); 28 Aug 2007 20:48:24 -0000 Received: (qmail 6449 invoked by alias); 28 Aug 2007 20:48:10 -0000 Date: Tue, 28 Aug 2007 20:48:00 -0000 Message-ID: <20070828204810.6448.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/29365] Unnecessary anonymous namespace warnings In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg02091.txt.bz2 ------- Comment #35 from pinskia at gmail dot com 2007-08-28 20:48 ------- Subject: Re: Unnecessary anonymous namespace warnings On 28 Aug 2007 19:40:14 -0000, pluto at agmk dot net wrote: > > > ------- Comment #34 from pluto at agmk dot net 2007-08-28 19:40 ------- > (In reply to comment #33) > > Fixed. > > > > one more testcase: > > $ cat X.hpp > namespace { class Impl; } > struct X > { > ~X(); > Impl* pimpl_; > }; > > $ cat X.cpp > #include "X.hpp" > X::~X() > { > } In this case, the warning is correct as Impl will be different in each Translation Unit so X can never be the same between two of them. -- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29365