https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67521
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Sep 10 07:39:53 2015 New Revision: 227616 URL: https://gcc.gnu.org/viewcvs?rev=227616&root=gcc&view=rev Log: PR middle-end/67521 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable if decl is already in outer->variables. * c-c++-common/gomp/pr67521.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/gomp/pr67521.c Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/gimplify.c branches/gcc-5-branch/gcc/testsuite/ChangeLog