From 5147d10aa4b2b608a02fb885a5510c983e148f06 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Thu, 16 Jan 2014 11:42:56 +0000 Subject: re PR middle-end/59827 (ICE on array with incomplete element type) PR middle-end/59827 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if it is error_mark_node. testsuite/ * gcc.dg/pr59827.c: New test. From-SVN: r206660 --- gcc/cgraph.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cgraph.c') diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 09fb4cb..92b31b9 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -3035,6 +3035,7 @@ gimple_check_call_args (gimple stmt, tree fndecl, bool args_count_match) break; arg = gimple_call_arg (stmt, i); if (p == error_mark_node + || DECL_ARG_TYPE (p) == error_mark_node || arg == error_mark_node || (!types_compatible_p (DECL_ARG_TYPE (p), TREE_TYPE (arg)) && !fold_convertible_p (DECL_ARG_TYPE (p), arg))) -- cgit v1.1