This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Semicolons at the end of member function definitions
- From: Dirk Mueller <dmueller at suse dot de>
- To: Volker Reichelt <v dot reichelt at netcologne dot de>
- Cc: Gabriel Dos Reis <gdr at cs dot tamu dot edu>, gcc at gcc dot gnu dot org
- Date: Thu, 2 Aug 2007 00:06:26 +0200
- Subject: Re: Semicolons at the end of member function definitions
- References: <tkrat.6fde7d1faf6cb977@netcologne.de>
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, we handle the difference between an enumerator list with a
trailing ',' and a initializer list with a trailing ',' - although that is
equally counter-intuitive).
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 however not implementable currently. As I
don't know why -pedantic-errors is on by default for C++ (but not for C), the
only possibility I see is indeed to revert this patch and add a
comment/testcase.
Greetings,
Dirk