diff options
author | Igor Zamyatin <igor.zamyatin@intel.com> | 2014-06-30 08:14:39 +0000 |
---|---|---|
committer | Kirill Yukhin <kyukhin@gcc.gnu.org> | 2014-06-30 08:14:39 +0000 |
commit | 5e88a8f4fb8655049c84d0ba133511cd568e93d2 (patch) | |
tree | 2e4504fc8ce8686b549beea65a739e937e8ec9bb /gcc/c/c-parser.c | |
parent | 21a7b5e1dbb59c6ff055aa3240e52916790ec305 (diff) | |
download | gcc-5e88a8f4fb8655049c84d0ba133511cd568e93d2.zip gcc-5e88a8f4fb8655049c84d0ba133511cd568e93d2.tar.gz gcc-5e88a8f4fb8655049c84d0ba133511cd568e93d2.tar.bz2 |
re PR middle-end/57541 ([Cilkplus]: internal compiler error: in gimplify_expr, at gimplify.c:7809)
PR middle-end/57541
gcc/c/
* c-array-notation.c (fix_builtin_array_notation_fn):
Check for 0 arguments in builtin call. Check that bultin argument is
correct.
* c-parser.c (c_parser_array_notation): Check for incorrect initial
index.
gcc/cpp/
* cp-array-notation.c (expand_sec_reduce_builtin):
Check that bultin argument is correct.
* call.c (build_cxx_call): Check for 0 arguments in builtin call.
gcc/testsuite/
* c-c++-common/cilk-plus/AN/pr57541.c: New case added.
* c-c++-common/cilk-plus/AN/pr57541-2.c: New test.
From-SVN: r212138
Diffstat (limited to 'gcc/c/c-parser.c')
-rw-r--r-- | gcc/c/c-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index 797d1bc..99e7fc8 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -14098,7 +14098,7 @@ c_parser_array_notation (location_t loc, c_parser *parser, tree initial_index, tree value_tree = NULL_TREE, type = NULL_TREE, array_type = NULL_TREE; tree array_type_domain = NULL_TREE; - if (array_value == error_mark_node) + if (array_value == error_mark_node || initial_index == error_mark_node) { /* No need to continue. If either of these 2 were true, then an error must be emitted already. Thus, no need to emit them twice. */ |