+2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
+
+ * call.c (build_over_call): Use VOID_TYPE_P. Don't die on
+ incomplete return type.
+
2000-11-28 Nathan Sidwell <nathan@codesourcery.com>
* parse.y (base_class.1): Produce a _TYPE not a _DECL.
}
fn = fold (build_call (fn, converted_args));
- if (TREE_CODE (TREE_TYPE (fn)) == VOID_TYPE)
+ if (VOID_TYPE_P (TREE_TYPE (fn)))
return fn;
fn = require_complete_type (fn);
+ if (fn == error_mark_node)
+ return error_mark_node;
if (IS_AGGR_TYPE (TREE_TYPE (fn)))
fn = build_cplus_new (TREE_TYPE (fn), fn);
return convert_from_reference (fn);
+2000-11-30 Nathan Sidwell <nathan@codesourcery.com>
+
+ * g++.old-deja/g++.other/crash38.C: New test.
+
2000-11-29 Toon Moene <toon@moene.indiv.nluug.nl>
* g77.f-torture/execute/20001111.x: Test fixed - remove XFAIL.
--- /dev/null
+// Build don't link:
+
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 28 Nov 2000 <nathan@codesourcery.com>
+
+// Bug 611. We ICEd when calling a member function returning an incomplete
+// type by value.
+
+struct X; // ERROR - forward ref
+
+struct Y
+{
+ X foo ();
+};
+
+void baz (Y *p)
+{
+ p->foo (); // ERROR - incomplete
+}