re PR c++/49577 ([C++0x] narrowing conversion not rejected)
authorJason Merrill <jason@redhat.com>
Tue, 2 Aug 2011 21:09:17 +0000 (17:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Aug 2011 21:09:17 +0000 (17:09 -0400)
commit54e7d7f5e9e226024737b41ce6feabf1522d13df
tree849cdd5ffbc844e11ab6b9a0166cb5799909bace
parent326a64554b0ebf03a33a6a55b4467e5d77e62199
re PR c++/49577 ([C++0x] narrowing conversion not rejected)

PR c++/49577
* typeck2.c (check_narrowing): Check unsigned mismatch.
* semantics.c (finish_compound_literal): check_narrowing.

From-SVN: r177215
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist5.C
gcc/testsuite/g++.dg/opt/range-test-1.C