This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11749] New: warning when initializing an enum type exceeding precision
- From: "mueller at kde dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2003 15:51:56 -0000
- Subject: [Bug c++/11749] New: warning when initializing an enum type exceeding precision
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11749
Summary: warning when initializing an enum type exceeding
precision
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mueller at kde dot org
CC: gcc-bugs at gcc dot gnu dot org
Hi,
testcase:
enum QEvent { x = 42 };
int main()
{
QEvent x = ( QEvent ) 42000;
return ( int ) x;
}