[Bug c++/53220] [4.7/4.8 Regression] g++ mis-compiles compound literals
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed May 30 14:52:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53220
--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> 2012-05-30 14:51:58 UTC ---
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
More information about the Gcc-bugs
mailing list