I get an error message for the following code snippet:
================================
void foo()
{
long n = 10;
int i;
#pragma omp for
for (i = 0; i < n; ++i) ;
}
================================
bug.c: In function 'foo':
bug.c:6: error: invalid controlling predicate
This happens with the C and the C++ frontend.
I'm not 100 % sure whether this is really a bug or not, but
icc for example accepts it.
--
Summary: [gomp] Loop rejected with mixed types in predicate
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: rejects-valid, openmp
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24505