PR c++/27278
* decl.c (grok_op_properties): Skip operators with invalid args
when checking for class-type or enum-type args.
* g++.dg/parse/operator7.C: New test.
From-SVN: r113389
+2006-04-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27278
+ * decl.c (grok_op_properties): Skip operators with invalid args
+ when checking for class-type or enum-type args.
+
2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27279
for (p = argtypes; p && p != void_list_node; p = TREE_CHAIN (p))
{
tree arg = non_reference (TREE_VALUE (p));
+ if (arg == error_mark_node)
+ return;
+
/* IS_AGGR_TYPE, rather than CLASS_TYPE_P, is used
because these checks are performed even on
template functions. */
+2006-04-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c++/27278
+ * g++.dg/parse/operator7.C: New test.
+
2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/11471
--- /dev/null
+// PR c++/27278
+// { dg-do compile }
+
+int operator+(void,void); // { dg-error "incomplete type|invalid use" }