This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r188020 - in /branches/gcc-4_7-branch/gcc: Chan...
- From: jason at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 30 May 2012 14:51:55 -0000
- Subject: r188020 - in /branches/gcc-4_7-branch/gcc: Chan...
Author: jason
Date: Wed May 30 14:51:54 2012
New Revision: 188020
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=188020
Log:
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.
Added:
branches/gcc-4_7-branch/gcc/testsuite/c-c++-common/array-lit.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/c-typeck.c
branches/gcc-4_7-branch/gcc/cp/ChangeLog
branches/gcc-4_7-branch/gcc/cp/call.c
branches/gcc-4_7-branch/gcc/cp/typeck.c
branches/gcc-4_7-branch/gcc/doc/extend.texi
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
branches/gcc-4_7-branch/gcc/testsuite/g++.dg/ext/complit12.C