[Patch,gfortran] ENUMERATIONS and ENUMERATORS
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Tue Oct 11 22:46:00 GMT 2005
Richard E Maine wrote:
> On Oct 11, 2005, at 1:43 PM, Tobias Schlüter wrote:
>>Your code supports the form
>> ENUM, BIND(C) etc.
>>of ENUM declarations. It doesn't support the form
>> ENUM (scalar-int-initialization-expr)
>>and it can't easily be extended to do so...
>
>
> Do note (everyone might know this, but I thought I'd mention just in
> case) that only the BIND(C) form is in the f2003 standard. There were
> some other forms in various drafts, but only the bind(c) one made it
> into the actual standard. I'll abstain on the question of whether one
> might or might want to implement the other form also anyway.
Oh, ok. I wasn't aware of that, and will be looking for a newer draft before
I look at the patch again.
(Given this as a minor enhancement one could match "ENUM, BIND ( C )" right
away instead of splitting the matching in two parts.)
Thanks for pointing this out,
- Tobi
More information about the Fortran
mailing list