https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70680
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Apr 20 01:42:24 2016 New Revision: 235232 URL: https://gcc.gnu.org/viewcvs?rev=235232&root=gcc&view=rev Log: PR middle-end/70680 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for implicitly linear or lastprivate iterator on the outer context. * testsuite/libgomp.c/pr70680-1.c: New test. * testsuite/libgomp.c/pr70680-2.c: New test. Added: trunk/libgomp/testsuite/libgomp.c/pr70680-1.c trunk/libgomp/testsuite/libgomp.c/pr70680-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/gimplify.c trunk/libgomp/ChangeLog