re PR c/79758 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark...
authorMarek Polacek <polacek@redhat.com>
Fri, 3 Mar 2017 22:19:24 +0000 (22:19 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 3 Mar 2017 22:19:24 +0000 (22:19 +0000)
commit7f5a7d78481678019409d47198f82a90f12882c2
tree827531c703f0c2c38c647daaab22b648eed4cee0
parent79c9b7a84f15938037fd209af24bbfa77ae02cbe
re PR c/79758 (ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in store_parm_decls_oldstyle, at c/c-decl.c:8973)

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.

From-SVN: r245886
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/noncompile/pr79758.c [new file with mode: 0644]