aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-12-10 14:06:21 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-12-10 14:06:21 +0000
commit5838eb9118a367da6b1307a1a13c5383880a5fc7 (patch)
tree797bc331a9c3200e9de0308c302a1ec3279f3c44 /gcc
parentf71b53c8a0fe8bb8138a9e14e63f7a64b8c5746b (diff)
downloadgcc-5838eb9118a367da6b1307a1a13c5383880a5fc7.zip
gcc-5838eb9118a367da6b1307a1a13c5383880a5fc7.tar.gz
gcc-5838eb9118a367da6b1307a1a13c5383880a5fc7.tar.bz2
* cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL.
From-SVN: r74496
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/cp-tree.h2
2 files changed, 5 insertions, 1 deletions
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 <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
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. */