diff options
author | Mike Stump <mrs@gcc.gnu.org> | 1996-10-31 17:08:58 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 1996-10-31 17:08:58 +0000 |
commit | 691c003dccd336c1350119b2f7d4b54c46e2a5fb (patch) | |
tree | f482dabe3bf5332dad7f8b35b91fd4b491d5841f /gcc/cp/decl2.c | |
parent | cced4d25eadca69195cc6f854b4e67a981a0faae (diff) | |
download | gcc-691c003dccd336c1350119b2f7d4b54c46e2a5fb.tar.gz |
90th Cygnus<->FSF quick merge
From-SVN: r13082
Diffstat (limited to 'gcc/cp/decl2.c')
-rw-r--r-- | gcc/cp/decl2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 0775bb2bba0..4bd06a36fdc 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1672,6 +1672,9 @@ copy_assignment_arg_p (parmtype, virtualp) tree parmtype; int virtualp; { + if (current_class_type == NULL_TREE) + return 0; + if (TREE_CODE (parmtype) == REFERENCE_TYPE) parmtype = TREE_TYPE (parmtype); |