This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/40308] Brace initialization fails for member initializers in constructor for class templates



------- Comment #1 from jason at gcc dot gnu dot org  2009-06-02 17:03 -------
Subject: Bug 40308

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


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40308


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]