------- Comment #6 from janus at gcc dot gnu dot org 2009-12-27 11:38 ------- One more observation: The Fortran test case works, with return as well as goto, giving the correct error message, if one removes the 'if' statement:
subroutine sub !$omp critical return !$omp end critical end subroutine "error: invalid branch to/from an OpenMP structured block" -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42484