PR c++/52845
* decl.c (finish_function): Update fntype after deducing return type.
From-SVN: r186139
+2012-04-04 Jason Merrill <jason@redhat.com>
+
+ PR c++/52845
+ * decl.c (finish_function): Update fntype after deducing return type.
+
2012-04-03 Jason Merrill <jason@redhat.com>
PR c++/52796
"deduced to %<void%>");
}
apply_deduced_return_type (fndecl, void_type_node);
+ fntype = TREE_TYPE (fndecl);
}
/* Save constexpr function body before it gets munged by
+2012-04-04 Jason Merrill <jason@redhat.com>
+
+ PR c++/52845
+ * g++.dg/cpp0x/lambda/lambda-warn4.C: New.
+
2012-04-03 Jason Merrill <jason@redhat.com>
PR c++/52796
--- /dev/null
+// PR c++/52845
+// { dg-options "-std=c++11 -Wall" }
+
+void f()
+{
+ [](){};
+}