aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-07-06 15:22:38 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-07-06 15:22:38 -0400
commit89a40f593e2ec518ee7872bb4529529342eb2d3f (patch)
tree2cda826734cded90d4eec7cfe7ddb8fcfa2dd4b5 /gcc/cp/error.c
parente10aaec029cf3918f75755a6365c1976be8ad6eb (diff)
downloadgcc-89a40f593e2ec518ee7872bb4529529342eb2d3f.zip
gcc-89a40f593e2ec518ee7872bb4529529342eb2d3f.tar.gz
gcc-89a40f593e2ec518ee7872bb4529529342eb2d3f.tar.bz2
* error.c (dump_function_decl): Don't crash on null DECL_NAME.
From-SVN: r161878
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 1902a13..cff822a 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -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)));