+2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
+
+ PR c/35750
+ * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
+
2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR middle-end/30186
/* Type for passing arg must be consistent with that
declared for the arg. ISO C says we take the unqualified
type for parameters declared with qualified type. */
- if (!comptypes (TYPE_MAIN_VARIANT (DECL_ARG_TYPE (parm)),
- TYPE_MAIN_VARIANT (TREE_VALUE (type))))
+ if (TREE_TYPE (parm) != error_mark_node
+ && TREE_TYPE (type) != error_mark_node
+ && !comptypes (TYPE_MAIN_VARIANT (DECL_ARG_TYPE (parm)),
+ TYPE_MAIN_VARIANT (TREE_VALUE (type))))
{
if (TYPE_MAIN_VARIANT (TREE_TYPE (parm))
== TYPE_MAIN_VARIANT (TREE_VALUE (type)))
+2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
+
+ PR c/35750
+ * gcc.dg/old-style-param-1.c: New test.
+
2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/object_overflow.adb: New test.