PR c++/64100
* typeck.c (lookup_destructor): Handle incomplete type.
From-SVN: r218571
+2014-12-10 Kai Tietz <ktietz@redhat.com>
+
+ PR c++/64100
+ * typeck.c (lookup_destructor): Handle incomplete type.
+
2014-12-09 Jason Merrill <jason@redhat.com>
PR c++/64129
expr = lookup_member (dtor_type, complete_dtor_identifier,
/*protect=*/1, /*want_type=*/false,
tf_warning_or_error);
+ if (!expr)
+ {
+ if (complain & tf_error)
+ cxx_incomplete_type_error (dtor_name, dtor_type);
+ return error_mark_node;
+ }
expr = (adjust_result_of_qualified_name_lookup
(expr, dtor_type, object_type));
if (scope == NULL_TREE)