This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48106] [C++0x] ICE with scoped enum with fixed underlying type
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 23 May 2011 23:21:46 +0000
- Subject: [Bug c++/48106] [C++0x] ICE with scoped enum with fixed underlying type
- Auto-submitted: auto-generated
- References: <bug-48106-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48106
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-23 22:55:51 UTC ---
Author: jason
Date: Mon May 23 22:55:46 2011
New Revision: 174091
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174091
Log:
PR c++/48106
* c-common.c (c_common_get_narrower): New.
(shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/enum14.C
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog