r148089 - in /trunk/gcc: cp/ChangeLog cp/call.c...
jason@gcc.gnu.org
jason@gcc.gnu.org
Tue Jun 2 17:02:00 GMT 2009
Author: jason
Date: Tue Jun 2 17:02:38 2009
New Revision: 148089
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148089
Log:
PR c++/40308
PR c++/40311
* typeck.c (cp_build_modify_expr): Always pass init-lists to the
conversion code.
* call.c (implicit_conversion): Allow init-list conversion to scalar
during direct-initialization, too. Mark the conversion bad if it
has too many levels of braces.
(convert_like_real): And give a helpful error.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist18.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist19.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/initlist13.C
More information about the Gcc-cvs
mailing list