* call.c (build_new_method_call): Use TYPE_MAIN_VARIANT of class.

From-SVN: r26801
This commit is contained in:
Nathan Sidwell 1999-05-06 03:09:52 +00:00 committed by Nathan Sidwell
parent aeb9f5fcaf
commit 969df93f1e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
1999-05-06 Nathan Sidwell <nathan@acm.org>
* call.c (build_new_method_call): Use TYPE_MAIN_VARIANT of class.
1999-05-05 Mark Mitchell <mark@codesourcery.com>
* decl2.c (start_objects): Don't let static constructors and

View File

@ -3559,7 +3559,7 @@ build_new_method_call (instance, name, args, basetype_path, flags)
instance = resolve_offset_ref (instance);
if (TREE_CODE (TREE_TYPE (instance)) == REFERENCE_TYPE)
instance = convert_from_reference (instance);
basetype = TREE_TYPE (instance);
basetype = TYPE_MAIN_VARIANT (TREE_TYPE (instance));
/* XXX this should be handled before we get here. */
if (! IS_AGGR_TYPE (basetype)