https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103276
--- Comment #5 from Yury Gribov <ygribov at gcc dot gnu.org> --- Created attachment 51823 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51823&action=edit Runnable reprocase I've attached another reprocase which reproduces the error at runtime (but let me reiterate that the original minirepro is easier to analyze). It can be compiled with /home/y.gribov/install/gcc-master/usr/local/bin/gfortran repro.f90 -O2 -ffree-form -fopenacc -foffload-options=-march=gfx908 It crashes at runtime with libgomp: Trying to map into device [0x7fffffffd8d0..0x7fffffffd928) object when [0x7fffffffd918..0x7fffffffd920) is already mapped Problem reproduces both on devel/omp/gcc-11 (commit f85ed229, Nov 10) and master (commit 0136f25a, Nov 10).