https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50377
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #5 from anlauf at gcc dot gnu.org ---
Created attachment 62541
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62541&action=edit
Draft patch
This catches the issues for
call sub(sub)
z = fun(fun)
end
subroutine sub(y)
external y
end
real function fun(z)
external z
f = 1.
end
and regresses only on gfortran.dg/pr41011.f which is invalid as is but can
easily be fixed.
As I am not sure if there is legacy code we need to support, -std=legacy
downgrades the error to a warning.