From 5838eb9118a367da6b1307a1a13c5383880a5fc7 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 10 Dec 2003 14:06:21 +0000 Subject: * cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL. From-SVN: r74496 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/cp-tree.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b9a0638..0ed8367 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-12-10 Mark Mitchell + + * cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL. + 2003-12-08 Matt Austern PR c/13134 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index a16a485..968d0b3 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1840,7 +1840,7 @@ struct lang_decl GTY(()) /* Nonzero if NODE is a user-defined conversion operator. */ #define DECL_CONV_FN_P(NODE) \ - (IDENTIFIER_TYPENAME_P (DECL_NAME (NODE))) + (DECL_NAME (NODE) && IDENTIFIER_TYPENAME_P (DECL_NAME (NODE))) /* If FN is a conversion operator, the type to which it converts. Otherwise, NULL_TREE. */ -- cgit v1.1