* cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL.
authorMark Mitchell <mark@codesourcery.com>
Wed, 10 Dec 2003 14:06:21 +0000 (14:06 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 10 Dec 2003 14:06:21 +0000 (14:06 +0000)
From-SVN: r74496

gcc/cp/ChangeLog
gcc/cp/cp-tree.h

index b9a0638e25fc47f39addba9d25ea2850a66cdc01..0ed83677a428d0c74c0d816dddc296b9bde1fdee 100644 (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
index a16a4858faa57a2a630034fd80de55cdff364f7f..968d0b3ec16a0057064260433e97ac70367594ad 100644 (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.  */