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++/60978] [4.9 Regression] -Wenum-compare warns too eagerly


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60978

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is documented to do this even in 4.8
(http://gcc.gnu.org/onlinedocs/gcc-4.8.2/gcc/Warning-Options.html):
 In C++ enumeral mismatches in conditional expressions are also diagnosed and
the warning is enabled by default.


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