PR c++/19811
* call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
attempting name lookup.
PR c++/19811
* g++.dg/init/delete1.C: New test.
From-SVN: r94799
2005-02-09 Mark Mitchell <mark@codesourcery.com>
+ PR c++/19811
+ * call.c (build_op_delete_call): Check COMPLETE_TYPE_P before
+ attempting name lookup.
+
* parser.c (cp_parser_unqualified_id): Initialize type_decl.
PR c++/19787
fnname = ansi_opname (code);
- if (IS_AGGR_TYPE (type) && !global_p)
+ if (CLASS_TYPE_P (type)
+ && COMPLETE_TYPE_P (complete_type (type))
+ && !global_p)
/* In [class.free]
If the result of the lookup is ambiguous or inaccessible, or if
+2005-02-09 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/19811
+ * g++.dg/init/delete1.C: New test.
+
2005-02-09 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/18470
--- /dev/null
+// PR c++/19811
+
+class C; // { dg-error "forward" }
+
+void foo(void *p) {
+ delete [] ((C*)p) ; // { dg-error "" }
+}