[Bug c++/11749] New: warning when initializing an enum type exceeding precision
mueller at kde dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 31 15:51:00 GMT 2003
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;
}
More information about the Gcc-bugs
mailing list