Semicolons at the end of member function definitions

2007-07-30 Thread Volker Reichelt
Hi, I just stumbled over the patch 2007-03-26 Dirk Mueller <[EMAIL PROTECTED]> * parser.c (cp_parser_member_declaration): Pedwarn about stray semicolons after member declarations. which was approved by Gaby here: http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01456.html and made i

Re: Semicolons at the end of member function definitions

2007-08-01 Thread Mark Mitchell
Volker Reichelt wrote: > 2007-03-26 Dirk Mueller <[EMAIL PROTECTED]> > >* parser.c (cp_parser_member_declaration): Pedwarn >about stray semicolons after member declarations. > > It makes > > struct A > { > void foo() {}; > } That is indeed still legal in the curre

Re: Semicolons at the end of member function definitions

2007-08-02 Thread Dirk Mueller
On Tuesday, 31. July 2007, Volker Reichelt wrote: > Therefore, IMHO the patch is wrong and should be reverted. > Or am I missing something? I don't have access to a newer version of the language standard either. I couldn't find a different case that is comparable to this one either (for example

Re: Semicolons at the end of member function definitions

2007-08-02 Thread Manuel López-Ibáñez
On 01/08/07, Dirk Mueller <[EMAIL PROTECTED]> wrote: > On Tuesday, 31. July 2007, Volker Reichelt wrote: > > So, assuming that this hasn't changed in a newer standard then I guess you're > right and the check should only be a warning with -pedantic, (and > no -pedantic-errors) given. This is howeve

Re: Semicolons at the end of member function definitions

2007-08-03 Thread Gabriel Dos Reis
On Wed, 1 Aug 2007, Mark Mitchell wrote: | Volker Reichelt wrote: | | > 2007-03-26 Dirk Mueller <[EMAIL PROTECTED]> | > | >* parser.c (cp_parser_member_declaration): Pedwarn | >about stray semicolons after member declarations. | > | | > It makes | > | > struct A | > { |