summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-10 14:06:21 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-10 14:06:21 +0000
commit4ec630add710f78e350a7b777230e57aca29f690 (patch)
tree797bc331a9c3200e9de0308c302a1ec3279f3c44
parent5afc381075b2b30c82464a32377464104856d79e (diff)
downloadppe42-gcc-4ec630add710f78e350a7b777230e57aca29f690.tar.gz
ppe42-gcc-4ec630add710f78e350a7b777230e57aca29f690.zip
* cp-tree.h (DECL_CONV_FN_P): Check that DECL_NAME is non-NULL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74496 138bc75d-0d04-0410-961f-82ee72b054a4
-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 b9a0638e25f..0ed83677a42 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 a16a4858faa..968d0b3ec16 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. */
OpenPOWER on IntegriCloud