https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91762
--- Comment #4 from Edoardo Apra <edoardo.apra at pnnl dot gov> --- @Jakub Thanks for the update. Please keep in mind that this bug shows up only when OpenMP target directives are used in subroutines are called by the main program. I have just upload a new test that tests the same OpenMP target directives, but with the OpenMP target directives in the main program, while the previous reproducer had the OpenMP target directives in subroutines called by the main program. This new reproducer does not fail with the gcc versions that support OpenMP target offloading