* cvt.c (build_expr_type_conversion): Type must be complete before
looking up for conversions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78293
138bc75d-0d04-0410-961f-
82ee72b054a4
2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+ PR c++/14250
+ * cvt.c (build_expr_type_conversion): Type must be complete before
+ looking up for conversions.
+
+2004-02-23 Giovanni Bajo <giovannibajo@gcc.gnu.org>
+
PR c++/14143
* name-lookup.c (arg_assoc_class): Don't look into template
arguments if it is not a primary template.
/* The code for conversions from class type is currently only used for
delete expressions. Other expressions are handled by build_new_op. */
-
- if (! TYPE_HAS_CONVERSION (basetype))
+ if (!complete_type_or_else (basetype, expr))
+ return error_mark_node;
+ if (!TYPE_HAS_CONVERSION (basetype))
return NULL_TREE;
for (conv = lookup_conversions (basetype); conv; conv = TREE_CHAIN (conv))