diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2004-09-23 18:22:25 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@gcc.gnu.org> | 2004-09-23 18:22:25 +0000 |
commit | 037cc9c5dce2bd0569c90e67ab9760d36e1c620f (patch) | |
tree | df77b7d51d9b71c598887245fda31d867e50e5b6 /gcc/tree.c | |
parent | 093942ac675fab472ce829446c86b8233f25ee1d (diff) | |
download | gcc-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |