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: 10 Aug 2008 22:28:56 -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 #6 from jakub at gcc dot gnu dot org 2008-08-10 22:28 -------
No idea how do you infer that from this.
If you use #pragma omp for before a loop construct, there are many restrictions
you need to honor to have a valid OpenMP program, this is just one of them.
To list just some other is e.g. that the for condition must be present and be
iter_var < lb (or <=, >, >=), while generic C/C++ for can have any expression
there, there are restrictions on the increment expression as well (e.g. it has
to be addition or subtraction to the iteration var, while non-OpenMP for can
have any expression there, etc.).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35158