[Patch, Fortran] PR fortran/37688: Relax "used before typed" check
Daniel Kraft
d@domob.eu
Sun Oct 12 10:12:00 GMT 2008
Hi,
as suggested by Tobias, this patch relaxes the "used before typed" check
to allow code like this:
SUBROUTINE (n)
INTEGER :: arr(n + 1)
INTEGER :: n
which is strictly speaking invalid but used in real world code and poses
no problem to implement. At the moment, a slightly stricter variant is
implemented in gfortran which allows only arr(n) (in -std=gnu) for
not-yet-typed n, and this patch extends this permission for basic
arithmetic expressions like the one above.
Regression test running on GNU/Linux-x86-32. Ok for trunk if no
regressions?
Yours,
Daniel
--
Done: Arc-Bar-Cav-Rog-Sam-Val-Wiz
To go: Hea-Kni-Mon-Pri-Ran-Tou
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.changelog
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081012/8388aff9/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081012/8388aff9/attachment-0001.ksh>
More information about the Gcc-patches
mailing list