PR c++/56567
commit8789c9b59d50863f5dd07179c3efe1b5db1e0abd
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Mar 2013 16:22:16 +0000 (11 16:22 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 11 Mar 2013 16:22:16 +0000 (11 16:22 +0000)
tree332df0e3a9078669a945c39ac9b4b3946236dab3
parent77ac3f0690f50a3d6a9c65606afb02c899fd192d
PR c++/56567
* typeck.c (check_return_expr): Disallow returning init list here.
* semantics.c (apply_deduced_return_type): Not here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196600 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-initlist3.C