/cp
commite36ce2a1d3d1ae54f8ba5af5fcbd5be57017d81d
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Apr 2015 21:46:59 +0000 (20 21:46 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Apr 2015 21:46:59 +0000 (20 21:46 +0000)
treec480f351c7ba24f67f191101ecd98811337923b2
parentaa5809a64bdf8d350093b7991c8f3ffc0a1b7e6c
/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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222249 138bc75d-0d04-0410-961f-82ee72b054a4
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]