call.c (build_over_call): Do require_complete_type before build_cplus_new.

* call.c (build_over_call): Do require_complete_type before
	build_cplus_new.

Fixes t20.C mode problem.

From-SVN: r15598
This commit is contained in:
Jason Merrill 1997-09-20 22:38:48 +00:00 committed by Jason Merrill
parent 71e4fbe6df
commit b82b76c6ba
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Sep 20 15:31:00 1997 Jason Merrill <jason@yorick.cygnus.com>
* call.c (build_over_call): Do require_complete_type before
build_cplus_new.
Thu Sep 18 16:47:52 1997 Jason Merrill <jason@yorick.cygnus.com>
* search.c (lookup_field): Call complete_type in all cases.

View File

@ -5425,9 +5425,10 @@ build_over_call (fn, convs, args, flags)
fn = build_call (fn, TREE_TYPE (TREE_TYPE (TREE_TYPE (fn))), converted_args);
if (TREE_TYPE (fn) == void_type_node)
return fn;
fn = require_complete_type (fn);
if (IS_AGGR_TYPE (TREE_TYPE (fn)))
fn = build_cplus_new (TREE_TYPE (fn), fn);
return convert_from_reference (require_complete_type (fn));
return convert_from_reference (fn);
}
static tree