re PR c++/66007 (Narrowing conversion inside { } results in all zero elements in...
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 4 May 2015 20:58:33 +0000 (20:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 4 May 2015 20:58:33 +0000 (20:58 +0000)
commitf5322614a6fb5a0ce3cf85914e85946296271e91
tree2e6c675a3efb74c7972b72a21781fdc4533e8487
parent467d8d51f1304b955136060db0a34e1f80f098bb
re PR c++/66007 (Narrowing conversion inside { } results in all zero elements in C++11 mode with -Wno-error=narrowing)

/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.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r222778
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/Wnarrowing4.C [new file with mode: 0644]