[Bug c/79758] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in store_parm_decls_oldstyle, at c/c-decl.c:8973
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 3 22:20:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79758
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Mar 3 22:19:24 2017
New Revision: 245886
URL: https://gcc.gnu.org/viewcvs?rev=245886&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/noncompile/pr79758.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-decl.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list