Commit 89a40f59 by Jason Merrill Committed by Jason Merrill

* error.c (dump_function_decl): Don't crash on null DECL_NAME.

From-SVN: r161878
parent e10aaec0
2010-07-06 Jason Merrill <jason@redhat.com>
* error.c (dump_function_decl): Don't crash on null DECL_NAME.
2010-07-06 Shujing Zhao <pearly.zhao@oracle.com>
* cp-tree.h (impl_conv_void): New type.
......
......@@ -1247,7 +1247,7 @@ dump_function_decl (tree t, int flags)
tree exceptions;
VEC(tree,gc) *typenames = NULL;
if (LAMBDA_FUNCTION_P (t))
if (DECL_NAME (t) && LAMBDA_FUNCTION_P (t))
{
/* A lambda's signature is essentially its "type", so defer. */
gcc_assert (LAMBDA_TYPE_P (DECL_CONTEXT (t)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment