re PR other/62008 (CilkPlus Array Notation ICE in build_array_notation_ref when tryin...
authorIgor Zamyatin <igor.zamyatin@intel.com>
Fri, 22 Aug 2014 09:37:01 +0000 (09:37 +0000)
committerKirill Yukhin <kyukhin@gcc.gnu.org>
Fri, 22 Aug 2014 09:37:01 +0000 (09:37 +0000)
commit671a475e64d77f16b3fbc5aad349be68828c1318
tree6f165c688a91a7330fa85c3c0db62bf89b086692
parent0bf1f5864e17b4cb2dc2868037358ceb5df65803
re PR other/62008 (CilkPlus Array Notation ICE in build_array_notation_ref when trying to build  a multidimensional array from a pointer.)

PR other/62008
gcc/c/
* c-parser.c (c_parser_array_notation): Check for correct
type of an array added.

gcc/cp/
* cp-array-notation.c (build_array_notation_ref): Added correct
handling of case with incorrect array.

gcc/testsuite/
* c-c++-common/cilk-plus/AN/pr62008.c: New test.

From-SVN: r214305
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/cp-array-notation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/AN/pr62008.c [new file with mode: 0644]