diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-11-07 13:58:21 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-11-07 13:58:21 +0000 |
commit | d48ebde10d34cfc027aff6f1e1bb6f7a52835d6d (patch) | |
tree | 8454d98f3a77718378e6d41394bdf2e33e09f82a /gcc/cp | |
parent | 665d66d647a24dd78c881d9473b06d861468f06f (diff) | |
download | gcc-d48ebde10d34cfc027aff6f1e1bb6f7a52835d6d.zip gcc-d48ebde10d34cfc027aff6f1e1bb6f7a52835d6d.tar.gz gcc-d48ebde10d34cfc027aff6f1e1bb6f7a52835d6d.tar.bz2 |
decl.c (build_ptrmemfunc_type): Allow error_mark_node.
cp:
* decl.c (build_ptrmemfunc_type): Allow error_mark_node.
testsuite:
* g++.old-deja/g++.pt/crash60.C: New test.
From-SVN: r37289
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/decl.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b79e310..62edaf5 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2000-11-07 Nathan Sidwell <nathan@codesourcery.com> + + * decl.c (build_ptrmemfunc_type): Allow error_mark_node. + 2000-11-05 Joseph S. Myers <jsm28@cam.ac.uk> * Make-lang.in (c++.distdir): Remove. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index d4d9bba..f4d170a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -9215,6 +9215,9 @@ build_ptrmemfunc_type (type) tree u; tree unqualified_variant = NULL_TREE; + if (type == error_mark_node) + return type; + /* If a canonical type already exists for this type, use it. We use this method instead of type_hash_canon, because it only does a simple equality check on the list of field members. */ |