https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96428
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Tobias Burnus from comment #0) > Created attachment 48986 [details] > Test case (Fortran, use 'gfortran -fopenacc" with nvptx offloading) > With the test-case setup like this: ... ! { dg-do link } ! { dg-additional-options "-O2 -ftree-vectorize" } ... I run into the ICE, but with the fix for the ICE in place, I run into: ... FAIL: libgomp.oacc-fortran/test.f90 -DACC_DEVICE_TYPE_nvidia=1 -DACC_MEM_SHARED=0 -foffload=nvptx-none -O (test for excess errors) Excess errors: unresolved symbol two_ ... Can you post a test-case that doesn't fail during linking?