This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33738] -Wtype-limits misses a warning when comparing enums
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2007 18:09:34 -0000
- Subject: [Bug c++/33738] -Wtype-limits misses a warning when comparing enums
- References: <bug-33738-91@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-10-11 18:09 -------
Warnings from optimizers are semi a no-no. Yes we have them for strict
aliasing and overflow but I think those cases are a bit weird. This is
unspecified behavior no matter what and there is no flag to change the behavior
here.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33738