This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

openmp gcc 4.9.1 bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]