This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [C/C++] same warning/error, different text
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Manuel LÃpez-IbÃÃez <lopezibanez at gmail dot com>
- Cc: gcc at gnu dot org, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Sun, 03 Dec 2006 17:25:42 -0800
- Subject: Re: [C/C++] same warning/error, different text
- References: <6c33472e0612011532t1f086b72hc61be052dcdbbf2d@mail.gmail.com>
Manuel LÃpez-IbÃÃez wrote:
> The message for the following error:
>
> enum e { E3 = 1 / 0 };
>
> is in C: error: enumerator value for 'E3' not integer constant
> and in C++: error: enumerator value for 'E3' is not an integer constant
>
> Is there someone against fixing this? What would be the preferred message?
I slightly prefer the more-grammatical C++ version, but, if there's any
controversy at all, I'm perfectly happy with the C version too, and it's
certainly a good thing to use the same message in both languages.
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713