https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78737
--- Comment #10 from janus at gcc dot gnu.org --- (In reply to Paul Thomas from comment #9) > Created attachment 40302 [details] > A workaround for the PR (even a patch?) > > The attached allows this testcase to run as intended: True, your patch makes gfortran accept the test case in comment #9 (probably correctly), but AFAICS it does not fix the link-time error on comment 0 or 6.