This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/30465] New: Duplicated overflow warning
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2007 21:02:38 -0000
- Subject: [Bug other/30465] New: Duplicated overflow warning
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
paolo:~/Work> more warning.cc
int main()
{
wchar_t wc = ((wchar_t)1 << 31) - 1;
}
paolo:~/Work> g++ warning.cc
warning.cc: In function 'int main()':
warning.cc:3: warning: integer overflow in expression
warning.cc:3: warning: overflow in implicit constant conversion
--
Summary: Duplicated overflow warning
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pcarlini at suse dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30465