This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] stray semi-colons in libstdc++ testsuite
- From: Douglas Gregor <dgregor at osl dot iu dot edu>
- To: Dirk Mueller <mueller at kde dot org>
- Cc: gcc-patches at gcc dot gnu dot org, Jonathan Wakely <jwakely dot gcc at gmail dot com>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 10 Dec 2007 10:11:50 -0500
- Subject: Re: [patch] stray semi-colons in libstdc++ testsuite
- References: <4348dea50712091120w4df4df65v6efa62b110fea294@mail.gmail.com> <200712101505.53082.mueller@kde.org>
- Reply-to: dgregor at osl dot iu dot edu
On Mon, 2007-12-10 at 15:05 +0100, Dirk Mueller wrote:
> On Sunday 09 December 2007, Jonathan Wakely wrote:
>
> > Although GCC accepts it without warning in all modes,
>
> -pedantic rejects it
>
> > it's not legal
> > to have a semi-colon after a namespace declaration in C++03.
>
> so it should be added to -Wc++-0x-compat ? any other places where stray
> semicolons are now rejected?
This hasn't changed in C++0x; it's still ill-formed to have a semi-colon
after a namespace declaration, so we should still only work about it
with "-pedantic".
- Doug