OSDN Git Service

PR c/39495
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Mar 2009 15:34:00 +0000 (15:34 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Mar 2009 15:34:00 +0000 (15:34 +0000)
commite060ba366c9a78fd8674b82c8e865815acb66588
tree3413aca2f5e318c5d2997003e2eef0683021ee20
parent42f43a383f094fe5790aac976e664a2825462f6d
PR c/39495
* c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
minimum or maximum value.

* parser.c (cp_parser_omp_for_cond): Don't check lhs if decl is NULL.
(cp_parser_omp_for_loop): Always use cp_parser_omp_for_cond.

* gcc.dg/gomp/pr39495-1.c: New test.
* gcc.dg/gomp/pr39495-2.c: New test.
* g++.dg/gomp/pr39495-1.C: New test.
* g++.dg/gomp/pr39495-2.C: New test.

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