--- Comment #1 from jakub at gcc dot gnu dot org 2008-06-11 08:20 ---
IMHO pedantically that's not valid OpenMP.
#pragma omp for
for (init-expr; test-expr; incr-expr) structured-block
One of the following:
init-exprvar = lb
integer-type var = lb
random-access-iterator-type var = lb
pointer-type var = lb
register keyword isn't part of the integer-type, it is a
storage-class-specifier
and the above syntax doesn't mention storage class specifiers anywhere.
Furthermore, I don't see why you'd actually need register keyword there at all,
in today's compilers the keyword is pretty useless, except when used together
with asm ("regname"), but that's not something we can/want to support for
#pragma omp for loops.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
CC||jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36475