aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2004-09-23 18:22:25 +0000
committerFariborz Jahanian <fjahanian@gcc.gnu.org>2004-09-23 18:22:25 +0000
commit037cc9c5dce2bd0569c90e67ab9760d36e1c620f (patch)
treedf77b7d51d9b71c598887245fda31d867e50e5b6 /gcc/tree.c
parent093942ac675fab472ce829446c86b8233f25ee1d (diff)
downloadgcc-037cc9c5dce2bd0569c90e67ab9760d36e1c620f.zip
gcc-037cc9c5dce2bd0569c90e67ab9760d36e1c620f.tar.gz
gcc-037cc9c5dce2bd0569c90e67ab9760d36e1c620f.tar.bz2
PR c++/9844, PR c++/13989
PR c++/9844, PR c++/13989 Reviewed by Mark Mitchel. From-SVN: r87971
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index a0cb800..0237d07 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -5642,10 +5642,15 @@ reconstruct_complex_type (tree type, tree bottom)
}
else if (TREE_CODE (type) == METHOD_TYPE)
{
+ tree argtypes;
inner = reconstruct_complex_type (TREE_TYPE (type), bottom);
+ /* The build_method_type_directly() routine prepends 'this' to argument list,
+ so we must compensate by getting rid of it. */
+ argtypes = TYPE_ARG_TYPES (type);
outer = build_method_type_directly (TYPE_METHOD_BASETYPE (type),
inner,
TYPE_ARG_TYPES (type));
+ TYPE_ARG_TYPES (outer) = argtypes;
}
else
return bottom;