re PR c++/49793 ([C++0x] Narrowing conversion from int/short/char to double)
authorJason Merrill <jason@redhat.com>
Sat, 23 Jul 2011 00:14:46 +0000 (20:14 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 23 Jul 2011 00:14:46 +0000 (20:14 -0400)
commit76f86d00d99168e75b27d8e641844237c78ad102
treeec438265c3481cd0c137ec1444b398d057b6cd01
parent295331a41988c2ecd818ba80f23c790e292fb296
re PR c++/49793 ([C++0x] Narrowing conversion from int/short/char to double)

PR c++/49793
* typeck2.c (check_narrowing): Downgrade permerror to pedwarn.
Make conditional on -Wnarrowing.

From-SVN: r176665
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist17.C
gcc/testsuite/g++.dg/cpp0x/initlist36.C
gcc/testsuite/g++.dg/cpp0x/initlist5.C
gcc/testsuite/g++.dg/cpp0x/initlist52.C
gcc/testsuite/g++.dg/cpp0x/initlist7.C