https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104061
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I was right and wrong, in the sense it might fix the testcase in comment #0 but
it won't fix:
int arr_0;
void
foo (void)
{
#pragma acc kernels
{
int k;
#pragma acc loop
for (k = 0; k < 2; k++)
arr_0 = k;
#pragma acc loop
for (k = 0; k < 2; k++)
arr_0 = k;
}
}
