* c-decl.c (store_parm_decls_oldstyle): Robustify
* gcc.dg/pr27953.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119446
138bc75d-0d04-0410-961f-
82ee72b054a4
+2006-12-02 Lee Millward <lee.millward@codesourcery.com>
+
+ PR c/27953
+ * c-decl.c (store_parm_decls_oldstyle): Robustify.
+
2006-11-30 Jan Hubicka <jh@suse.cz>
Uros Bizjak <ubizjak@gmail.com>
tree type;
for (parm = DECL_ARGUMENTS (fndecl),
type = current_function_prototype_arg_types;
- parm || (type && (TYPE_MAIN_VARIANT (TREE_VALUE (type))
- != void_type_node));
+ parm || (type && TREE_VALUE (type) != error_mark_node
+ && (TYPE_MAIN_VARIANT (TREE_VALUE (type)) != void_type_node));
parm = TREE_CHAIN (parm), type = TREE_CHAIN (type))
{
if (parm == 0 || type == 0
+2006-12-02 Lee Millward <lee.millward@codesourcery.com>
+
+ PR c/27953
+ * gcc.dg/pr27953.c: New test.
+
2006-12-01 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/30022
--- /dev/null
+/* PR c/27953 */
+
+void foo(struct A a) {} /* { dg-error "parameter list|definition|incomplete type" } */
+void foo() {} /* { dg-error "redefinition" }
\ No newline at end of file