[Bug c++/49043] [OpenMP & C++0x]: Compiler error when lambda-function within OpenMP loop
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu May 19 09:16:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49043
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011.05.19 08:55:08
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-05-19 08:55:08 UTC ---
Created attachment 24287
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24287
gcc46-pr49043.patch
Untested fix.
That said, I'd advise not to use lambdas in OpenMP regions, because the OpenMP
standard doesn't say anything about the data environment of those and how it
should behave. Even the upcoming OpenMP 3.1 doesn't cover C++0x, I hope OpenMP
4.0 will.
More information about the Gcc-bugs
mailing list