re PR c++/48106 ([C++0x] ICE with scoped enum with fixed underlying type)
authorJason Merrill <jason@redhat.com>
Mon, 23 May 2011 22:55:46 +0000 (18:55 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 23 May 2011 22:55:46 +0000 (18:55 -0400)
commit828fb3ba9958f3117680efb9ade199fc7e98f462
tree4dab37634bd240e1a80cbc953bd868d0db79d860
parent0f6e664b85c971f7550db62f490ea7e261d40307
re PR c++/48106 ([C++0x] ICE with scoped enum with fixed underlying type)

PR c++/48106
* c-common.c (c_common_get_narrower): New.
(shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.

From-SVN: r174091
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum14.C [new file with mode: 0644]