PR c++/38348
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2008 15:10:25 +0000 (15:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2008 15:10:25 +0000 (15:10 +0000)
commit5846b949460ea036e548e9a9fd72ae4c10993ce9
treed549d9aed6ba1fe9b773286c6c92016841748612
parente52dd25836ec08885b8206b330060617281db851
PR c++/38348
* c-omp.c (c_finish_omp_for): Only transform pointer
++ or -- into MODIFY_EXPR if second argument is non-NULL.

* g++.dg/gomp/for-19.C: New test.

* testsuite/libgomp.c++/for-6.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142318 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-omp.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/for-19.C [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/for-6.C [new file with mode: 0644]