This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Backport fix for spurious anonymous ns warnings PR29365 to 4.2?
- From: Ian Lance Taylor <iant at google dot com>
- To: "Aaron W. LaFramboise" <aaronavay62 at aaronwl dot com>
- Cc: gcc at gcc dot gnu dot org, mark at codesourcery dot com, gcc at magfr dot user dot lysator dot liu dot se, pluto at agmk dot net
- Date: 01 May 2007 14:28:07 -0700
- Subject: Re: Backport fix for spurious anonymous ns warnings PR29365 to 4.2?
- References: <4637AF06.8040504@aaronwl.com>
"Aaron W. LaFramboise" <aaronavay62@aaronwl.com> writes:
> I discovered PR29365 today while testing 4.2.0 RC2 on a client's
> codebase. This causes some of my code, based on the popular pimpl
> idiom, to generate warnings, even with no warning flags specified. If
> there's a way to turn it off without patching the source, I can't find
> it.
>
> Given the pervasiveness of the pimpl idiom in C++, and the increasing
> use of anonymous namespaces in modern code, it is possible that this
> will be a serious problem for some C++ developers, that may hinder the
> adoption of 4.2. It's not hard to imagine that this could come up in
> a lot of other weird places that uses anonymous namespaces, too.
>
> Does this qualify as a regression? Does anyone else think this is a
> serious problem?
I agree that it would be appropriate to backport the patch to gcc 4.2.
Ian