PR c/51360
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2011 17:29:25 +0000 (17:29 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Dec 2011 17:29:25 +0000 (17:29 +0000)
commit80678da6ee0d18eaffad737851c60c00764976db
treed9175cdfc130e51e03e7c8c63c71f7397b829930
parent358633028887dea3d187c832c6307482b4fafe58
PR c/51360
* c-parser.c (c_parser_omp_clause_num_threads,
c_parser_omp_clause_schedule): Call mark_exp_read.

* semantics.c (finish_omp_clauses): For OMP_CLAUSE_NUM_THREADS_EXPR
and OMP_CLAUSE_SCHEDULE_CHUNK_EXPR call mark_rvalue_use.

* c-c++-common/gomp/pr51360.c: New test.
* g++.dg/gomp/pr51360.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182381 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-parser.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr51360.c [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/pr51360.C [new file with mode: 0644]