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]

[Bug c++/35158] g++ does not compile valid C++ for loops with -fopenmp



------- Comment #9 from jakub at gcc dot gnu dot org  2008-08-11 13:14 -------
To answer c#7, that's what would (and does) happen for autoparallelization.
But OpenMP is explicit parallelization, if you don't preceede for (...; ...;
...) ... construct with #pragma omp {,parallel } for, nothing will warn nor
error on it.  But if you have the pragma there and request OpenMP pragmas to be
recognized, then the program must not only be valid C++ (or C or Fortran), but
also valid OpenMP code, so just warnings aren't appropriate.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35158


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