http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52547
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-03-22 15:04:00 UTC --- Created attachment 26957 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26957 gcc47-pr52547.patch Untested fix. Note the nested fn in OpenMP is only barely supported, it will very likely not do what you expect (the nested function will be accessing the copy of the variables of the function, not the possibly privatized copies of the omp region (as if all the vars were shared), and e.g. non-local gotos in them will not even compile.