This is the mail archive of the gcc-bugs@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]

[Bug c++/27975] warning for comparison of different enum types impossible to control/is undocumented



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


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