* cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL.

From-SVN: r74496
This commit is contained in:
Mark Mitchell 2003-12-10 14:06:21 +00:00 committed by Mark Mitchell
parent f71b53c8a0
commit 5838eb9118
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-12-10 Mark Mitchell <mark@codesourcery.com>
* cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL.
2003-12-08 Matt Austern <austern@apple.com>
PR c/13134

View File

@ -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. */