This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,gfortran] ENUMERATIONS and ENUMERATORS
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Richard E Maine <Richard dot Maine at nasa dot gov>
- Cc: fortran at gcc dot gnu dot org,"Gaurav Gautam, Noida" <gauravga at noida dot hcltech dot com>,gcc-patches at gcc dot gnu dot org, Paul Brook <paul at codesourcery dot com>
- Date: Wed, 12 Oct 2005 00:37:50 +0200
- Subject: Re: [Patch,gfortran] ENUMERATIONS and ENUMERATORS
- References: <40CC5CC7CDACC048B1299C57025E330C010A031F@HSDLNTD1110010.noida.hcltech.com> <434C23DC.4070204@physik.uni-muenchen.de> <996fd1f375bb889fd086645004e45b6e@nasa.gov>
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