Commit 6d2b1bee by Benjamin Kosnik Committed by Benjamin Kosnik

call.c (build_method_call): Call complete_type before checking for destructor.

	* call.c (build_method_call): Call complete_type before checking
 	for destructor.
g++/13098 fix!!

From-SVN: r16438
parent 1f109f0f
Wed Nov 12 08:11:55 1997 Benjamin Kosnik <bkoz@rhino.cygnus.com>
* call.c (build_method_call): Call complete_type before checking
for destructor.
Sun Nov 9 01:29:55 1997 Jim Wilson (wilson@cygnus.com)
* decl.c (add_block_current_level): Delete.
......
......@@ -1812,7 +1812,7 @@ build_method_call (instance, name, parms, basetype_path, flags)
return cp_convert (void_type_node, instance);
}
if (! TYPE_HAS_DESTRUCTOR (basetype))
if (! TYPE_HAS_DESTRUCTOR (complete_type (basetype)))
return cp_convert (void_type_node, instance);
instance = default_conversion (instance);
instance_ptr = build_unary_op (ADDR_EXPR, instance, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment