PR other/62008
commit5fdda74b833e3dde26563cce639ffce217e0414a
authorkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Aug 2014 09:37:01 +0000 (22 09:37 +0000)
committerkyukhin <kyukhin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Aug 2014 09:37:01 +0000 (22 09:37 +0000)
tree6f165c688a91a7330fa85c3c0db62bf89b086692
parent0f2f527847aa3e4a5930ed076f5e9f84bad2a3c6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214305 138bc75d-0d04-0410-961f-82ee72b054a4
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]