https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69916
Bug ID: 69916 Summary: [openacc] ICE in single_succ_edge called from oacc_loop_xform_loop Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- $ cat loop-clauses.c int main (void) { #pragma acc parallel { int j; #pragma acc loop private (j) for (int i = 0; i < 10; i++) j++; } return 0; } $ gcc loop-clauses.c -fopenacc -S -O2 loop-clauses.c: In function ‘main._omp_fn.0’: loop-clauses.c:5:9: internal compiler error: in single_succ_edge, at basic-block.h:351 #pragma acc parallel ^~~ 0xcf6d90 single_succ_edge src/gcc/basic-block.h:351 0xcf6e0e single_succ src/gcc/basic-block.h:371 0xd4eece oacc_loop_xform_loop src/gcc/omp-low.c:20759 0xd4ef9f oacc_loop_process src/gcc/omp-low.c:20781 0xd4ef2e oacc_loop_process src/gcc/omp-low.c:20771 0xd4f888 execute_oacc_device_lower src/gcc/omp-low.c:21085 0xd4fd74 execute src/gcc/omp-low.c:21268 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.