This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,gfortran] ENUMERATIONS and ENUMERATORS


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]