This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30139] New: overflow warning for unevaluated part of expression
- 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: 10 Dec 2006 19:57:08 -0000
- Subject: [Bug c++/30139] New: overflow warning for unevaluated part of expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
#include <limits.h>
enum e { E = 1 ? 0 : (-INT_MIN) };
g++ reports:
test.C:3: warning: integer overflow in expression
while gcc doesn't.
--
Summary: overflow warning for unevaluated part of expression
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30139