https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107236
Bug ID: 107236 Summary: [OpenMP] ICE for reverse offload: in expand_GOMP_TARGET_REV, at internal-fn.cc:376 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org Target Milestone: --- Created attachment 53696 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53696&action=edit Testcase - compile as: gfortran -fopenmp test.f90 This only shows up if ENABLE_OFFLOADING is true during the GCC build. The attached testcase fails with: rev-test-ice.f90:5:33: internal compiler error: in expand_GOMP_TARGET_REV, at internal-fn.cc:376 5 | !$omp target device(ancestor:1) | ^ 0x791309 expand_GOMP_TARGET_REV /net/build1-fossa-cs/scratch/tburnus/fsf.mainline.x86_64-linux-gnu-amdgcn/src/gcc-mainline/gcc/internal-fn.cc:376 0xb2c147 expand_call_stmt