PR c/18809
* c-typeck.c (convert_arguments): Check for error_mark_node.
* gcc.dg/pr18809-1.c: New test.
From-SVN: r94049
+2005-01-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c/18809
+ * c-typeck.c (convert_arguments): Check for error_mark_node.
+
2005-01-20 Ian Lance Taylor <ian@airs.com>
PR tree-optimization/13000
/* Formal parm type is specified by a function prototype. */
tree parmval;
- if (!COMPLETE_TYPE_P (type))
+ if (type == error_mark_node || !COMPLETE_TYPE_P (type))
{
error ("type of formal parameter %d is incomplete", parmnum + 1);
parmval = val;
+2005-01-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+
+ PR c/18809
+ * gcc.dg/pr18809-1.c: New test.
+
2005-01-21 Ian Lance Taylor <ian@airs.com>
* gcc.dg/20050121-1.c: New test.
--- /dev/null
+/* PR c/18809 */
+/* Origin: Andrew Pinski <pinskia@gcc.gnu.org> */
+
+/* { dg-do compile } */
+
+void foo(enum E e) {} /* { dg-error "" } */
+void bar() { foo(0); } /* { dg-error "formal" } */