[Bug c++/56567] [4.8 Regression] ICE with lambda return type deduction and braced-init-list

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 11 16:23:00 GMT 2013


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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2013-03-11 16:22:28 UTC ---
Author: jason
Date: Mon Mar 11 16:22:16 2013
New Revision: 196600

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196600
Log:
    PR c++/56567
    * typeck.c (check_return_expr): Disallow returning init list here.
    * semantics.c (apply_deduced_return_type): Not here.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-initlist3.C



More information about the Gcc-bugs mailing list