This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35158] g++ does not compile valid C++ for loops with -fopenmp
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2008 13:14:57 -0000
- Subject: [Bug c++/35158] g++ does not compile valid C++ for loops with -fopenmp
- References: <bug-35158-9293@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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