]> gcc.gnu.org Git - gcc.git/commit
re PR c++/53220 (g++ mis-compiles compound literals)
authorJason Merrill <jason@redhat.com>
Sat, 26 May 2012 21:13:23 +0000 (17:13 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 26 May 2012 21:13:23 +0000 (17:13 -0400)
commit1f37c58399cc1cd5047b8464f09b9af750f129af
tree215d3cb4dc23743144db979c43a787f2ed6b3027
parentc4c57c9cbeda074a1e21d469575510791ed8667e
re PR c++/53220 (g++ mis-compiles compound literals)

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.

From-SVN: r187916
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
This page took 0.058714 seconds and 5 git commands to generate.