diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-10 14:06:21 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-10 14:06:21 +0000 |
| commit | 4ec630add710f78e350a7b777230e57aca29f690 (patch) | |
| tree | 797bc331a9c3200e9de0308c302a1ec3279f3c44 | |
| parent | 5afc381075b2b30c82464a32377464104856d79e (diff) | |
| download | ppe42-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/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cp/cp-tree.h | 2 |
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. */ |

