This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
openmp gcc 4.9.1 bug
- From: Jamil Appa <jamil dot appa at zenotech dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Jan 2015 11:22:17 +0000
- Subject: openmp gcc 4.9.1 bug
- Authentication-results: sourceware.org; auth=none
Hi
I am attempting to compile the following but the compilation fails
rather than issue an autological compare warning.
#include <iostream>
#include <omp.h>
int main()
{
#pragma omp simd
for(unsigned int i=0;i<0u;++i)
{
}
return 1;
}
g++ -fopenmp omp_bug.cxx
Error message
omp_bug.cxx: In function âint main()â:
omp_bug.cxx:9:3: error: invalid controlling predicate
for(unsigned int i=0;i<0u;++i)
^
Thanks
Jamil