diff options
| author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-02 21:59:42 +0000 |
|---|---|---|
| committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-02 21:59:42 +0000 |
| commit | d92cdb26342e673f5d026a3e74b997cfb1e4d623 (patch) | |
| tree | 77a90207a7436944b80880b919d1be2d7ad004a1 | |
| parent | 72ab438a32c57f0b9b2247b77fc55667580bc60d (diff) | |
| download | ppe42-gcc-d92cdb26342e673f5d026a3e74b997cfb1e4d623.tar.gz ppe42-gcc-d92cdb26342e673f5d026a3e74b997cfb1e4d623.zip | |
PR c++/16270
* decl.c (grokdeclarator): Robustify.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84029 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7ebda95670e..dc5fa2849c3 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-07-02 Mark Mitchell <mark@codesourcery.com> + + PR c++/16270 + * decl.c (grokdeclarator): Robustify. + 2004-07-01 Richard Henderson <rth@redhat.com> * class.c (fixed_type_or_null): Don't handle RTL_EXPR. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index ee7d76f3802..e591a257846 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6379,6 +6379,8 @@ grokdeclarator (const cp_declarator *declarator, } if (TREE_CODE (decl) == BASELINK) decl = BASELINK_FUNCTIONS (decl); + if (decl == error_mark_node) + return error_mark_node; switch (TREE_CODE (decl)) { case BIT_NOT_EXPR: |

