PR c/79758
commitf2360ea58a8c116532868315837592df58693e6a
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Mar 2017 22:19:24 +0000 (3 22:19 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 3 Mar 2017 22:19:24 +0000 (3 22:19 +0000)
tree827531c703f0c2c38c647daaab22b648eed4cee0
parent408a47b2364cf45d271f5069699bb20e42db39dd
PR c/79758
* c-decl.c (store_parm_decls_oldstyle): Check if the element of
current_function_prototype_arg_types is error_mark_node.  Fix
formatting.  Use TREE_VALUE instead of TREE_TYPE.

* gcc.dg/noncompile/pr79758.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245886 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr79758.c [new file with mode: 0644]