]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/52845 (non-void return type deduced for lambda with empty compound statement)
authorJason Merrill <jason@redhat.com>
Wed, 4 Apr 2012 14:40:51 +0000 (10:40 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 4 Apr 2012 14:40:51 +0000 (10:40 -0400)
commit6f6e1e9e8b306bdc76fbd7268583c180b1e32046
tree3fe3fddac64b54e7e2217dfc23d785abd4262fad
parent0b9066cf56f688034561c58adb5cadaf102abb26
re PR c++/52845 (non-void return type deduced for lambda with empty compound statement)

PR c++/52845
* decl.c (finish_function): Update fntype after deducing return type.

From-SVN: r186139
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-warn4.C [new file with mode: 0644]