This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [C/C++] same warning/error, different text


Mark Mitchell <mark@codesourcery.com> writes:

| 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.

Indeed; my preference also goes to the C++ diagnostic.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]