[Bug fortran/50525] gfortran should not allow early reference to entry dummy argument (r178939)
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 27 08:24:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50525
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
CC| |burnus at gcc dot gnu.org
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-09-27 07:56:20 UTC ---
NAG has:
Error: test.f90, line 2: Dummy arg X used before first occurrence in an
argument list
And ifort has:
h4j.f90(2): error #6482: An ENTRY dummy argument is referenced in an executable
statement before it appears in any ENTRY statement. [X]
f(y)=x ! this is wrong
-----------^
The easiest fix is probably to check whether the symbol is already defined when
parsing "entry e(x)" (or adding attr.dummy).
More information about the Gcc-bugs
mailing list