PR c++/53220
commiteb5d9b7b56ef66787a2052d4deb04a675eb9b2c9
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 May 2012 21:13:23 +0000 (26 21:13 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 26 May 2012 21:13:23 +0000 (26 21:13 +0000)
tree215d3cb4dc23743144db979c43a787f2ed6b3027
parent91da4ab2b97e817bc02fcde53cc8c5f195b5fe61
PR c++/53220
gcc/
* c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
about array compound literals.
gcc/cp/
* call.c (convert_like_real) [ck_list]: Take array address directly.
* typeck.c (decay_conversion): Reject decay of an array compound
literal.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187916 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/array-lit.c [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/complit12.C