re PR c++/65801 (Allow -Wno-narrowing to silence stricter C++11 narrowing rules)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 20 Apr 2015 21:46:59 +0000 (21:46 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 20 Apr 2015 21:46:59 +0000 (21:46 +0000)
commit2821fc6b76973dd6cb956229027e8e065a020424
treec480f351c7ba24f67f191101ecd98811337923b2
parent0cfabb3780b23de06e8fd52bfe15b2aea7b56f42
re PR c++/65801 (Allow -Wno-narrowing to silence stricter C++11 narrowing rules)

/cp
2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65801
* typeck2.c (check_narrowing): In C++11 mode too, -Wno-narrowing
suppresses the diagnostic.

2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65801
* doc/invoke.texi ([-Wnarrowing]): Update.

/testsuite
2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65801
* g++.dg/cpp0x/Wnarrowing2.C: New.

From-SVN: r222249
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wnarrowing2.C [new file with mode: 0644]