This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/68033] OpenMP: ICE with teams distribute
- From: "jamborm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 Aug 2017 18:44:40 +0000
- Subject: [Bug libgomp/68033] OpenMP: ICE with teams distribute
- Auto-submitted: auto-generated
- References: <bug-68033-4@http.gcc.gnu.org/bugzilla/>
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];
}
}
}