RFC: Experimental BLOCK implementation
Daniel Kraft
d@domob.eu
Fri Sep 25 11:27:00 GMT 2009
Hi all,
attached is an experimental draft patch to implement the F2008 BLOCK
construct. There seem to be some interesting corner cases and
interpretations about BLOCK (see
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39626, especially Tobias'
pointer), but I'm just trying to get the 'basic' stuff right without
caring for now about some peculiarities.
The patch works so far for what I would expect from BLOCK (see the test
cases), but misses some checks that only stuff really allowed with a
BLOCK is included there, and some other item that I think is wrong at
the moment is that variables that get implicitly typed within the block
would have only the block as their scope -- this is not in line with the
draft standard, AFAIK.
Additionally, I'm not sure if my implementation uses the 'best' and
'cleanest' ways... Comments very welcome! My plan is to work on the
missing checks and then submit the revised patch for review.
Yours,
Daniel
--
Done: Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090925/d79616f7/attachment.ksh>
More information about the Fortran
mailing list