/cp
commiteba4cf96a55daf6664439484b09c71334dfc342d
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2015 20:58:33 +0000 (4 20:58 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 May 2015 20:58:33 +0000 (4 20:58 +0000)
tree2e6c675a3efb74c7972b72a21781fdc4533e8487
parent2d66501e5849919accbb65a18a92b497068ded4f
/cp
2015-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
    Jakub Jelinek  <jakub@redhat.com>

PR c++/66007
* typeck2.c (check_narrowing): Check by-hand that the pedwarn didn't
result in an actual error.

/testsuite
2015-05-04  Paolo Carlini  <paolo.carlini@oracle.com>
    Jakub Jelinek  <jakub@redhat.com>

PR c++/66007
* g++.dg/cpp0x/Wnarrowing4.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@222778 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wnarrowing4.C [new file with mode: 0644]