(j3.2006) scope of implicitly declared entities in BLOCK constructs
Robert Corbett
Robert.Corbett
Fri Mar 6 05:51:58 EST 2009
As the draft Fortran 2008 standard is currently written,
a data entity that is implicity declared in a BLOCK
construct has the scope of the outermost scoping unit
that contains it. Thus,
PROGRAM MAIN
BLOCK
I = 10
END BLOCK
PRINT *, I
END
conforms to the draft standard, but
PROGRAM MAIN
BLOCK
INTEGER I
I = 10
END BLOCK
PRINT *, I
END
does not. Is that the intent of the committee?
Bob Corbett
More information about the J3
mailing list