This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27975] warning for comparison of different enum types impossible to control/is undocumented
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Mar 2007 22:17:47 -0000
- Subject: [Bug c++/27975] warning for comparison of different enum types impossible to control/is undocumented
- References: <bug-27975-12684@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from manu at gcc dot gnu dot org 2007-03-14 22:17 -------
(In reply to comment #6)
> Subject: Re: warning for comparison of different enum types impossible to
> control/is undocumented
>
> "manu at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
>
> | I could also add it to the new -Wconversion option.
>
> I believe this is the way to go.
>
What are we actually warning about? The promotion of enum to a type different
from the underlying type? And how does this differs from signed/unsigned
conversion? I mean, the enum cannot be promoted to a smaller type, so the only
issue possible is a change of signedness?
Please, correct me where I am wrong.
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27975