https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68033
Martin Jambor <jamborm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jamborm at gcc dot gnu.org --- Comment #2 from Martin Jambor <jamborm at gcc dot gnu.org> --- Below is a slightly more reduced testcase, crashes with gcc -S -fopenmp. From what I have gathered so far, we would like to issue an error from the gimplifier about a non sharing of an artificial temporary variable that has not DECL_NAME and thus segfault. void lud_omp(float *a, int size) { int i,j,k; float sum; for (i=0; i <size; i++) { #pragma omp target #pragma omp teams distribute parallel for default(none) \ private(j,k,sum) shared(size,i,a) for (j=i+1;j<size; j++){ sum=a[j*size+i]; } } }