]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix logic bug in Cilk Plus array expansion
authorPatrick Palka <ppalka@gcc.gnu.org>
Sat, 16 Jan 2016 02:30:14 +0000 (02:30 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Sat, 16 Jan 2016 02:30:14 +0000 (02:30 +0000)
commit203484bb27d092dde0f91bf50ce6bc541f1e5dfe
treef5d75ff6dd39696c86933b9753178c8ba2b7bb77
parentaa2500e9bc6ce022c604fefb5f9c60d6fd7134f8
Fix logic bug in Cilk Plus array expansion

gcc/cp/ChangeLog:

* cp-array-notation.c (cp_expand_cond_array_notations): Return
error_mark_node only if find_rank failed, not if it was
successful.

gcc/testsuite/ChangeLog:

* c-c++-common/cilk-plus/AN/an-if.c: Check that the original
dump does not contain an error_mark_node.
* c-c++-common/cilk-plus/CK/pr60469.c: Likewise.
* c-c++-common/cilk-plus/AN/fn_ptr-2.c: New xfail'd test.

From-SVN: r232462
gcc/cp/ChangeLog
gcc/cp/cp-array-notation.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/AN/an-if.c
gcc/testsuite/c-c++-common/cilk-plus/AN/fn_ptr-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/cilk-plus/CK/pr60469.c