This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: No effect of -fshort-enums..is it a bug
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: John Love-Jensen <eljay at adobe dot com>
- Cc: "'Gaurav Gautam, Noida'" <gauravga at noida dot hcltech dot com>, <gcc at gcc dot gnu dot org>, MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: 22 Sep 2005 18:40:44 +0200
- Subject: Re: No effect of -fshort-enums..is it a bug
- References: <BF584543.1F89%eljay@adobe.com>
John Love-Jensen <eljay@adobe.com> writes:
| Hi Dave, Daniel, and Gaurav,
|
| For C99, I stand corrected.
|
| For C89 or C++98, I think my statement is applicable.
No, for C++98 your statement is even more incorrect because
enumerators (the constants) are NOT of type int -- and that has been
so for looon time now that I'm surprise. In fact, I wish the
enumeration underlying type were not int by default. But I suspect
that for interoperability with C, it was decided -fshort-enum wasn't
the default (I wish it was).
-- Gaby