https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115076
--- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> --- The testcase mentioned in PR 115271 comment 1, i.e., the existing (xfailed): libgomp/testsuite/libgomp.fortran/declare-variant-2.f90 libgomp/testsuite/libgomp.fortran/declare-variant-2-aux.f90 is interesting as in the variant declaration is in the module - but the actual base function is declared in the same file as the the module user, which is an interesting scoping issue. - And belong rather here than to PR 115271.