[Patch,gfortran, ping] ENUMERATIONS and ENUMERATORS ---------ping2

Gaurav Gautam, Noida gauravga@noida.hcltech.com
Fri Oct 7 06:49:00 GMT 2005


Hi All,

Did you get a change to see the patch?

http://gcc.gnu.org/ml/gcc-patches/2005 -09/msg01834.html

I haven't received any response to this patch.

In case, you need more information about the patch, please send a mail to me.

-gaurav

> Hi,
> 
> Did u get a chance to look at the patch?
> 
> http://gcc.gnu.org/ml/gcc-patches/2005-09/msg01834.html
> 
> -gaurav Gautam
> 
> >
> > Hi,
> >
> >
> > > "For an enumeration the kind is selected such that an integer type
> with
> > > that
> > > kind is interoperable with the corresponding C enumeration type."
> > >
> > > ie. you should use the same rules as the C frontend. See also the
> effect
> > > of
> > > -fshort-enums.
> >
> > I have modified the patch so that
> >
> > For an enumeration, the kind is selected such that an integer type with
> > that kind is interoperable (15.2.1) with the corresponding C enumeration
> > type.
> >
> >
> > Also, an option -fshort-enums has been added, that ensures
> > interoperability of enumerations when the corresponding C code has been
> > compiled by gcc -fshort-enums.
> >
> >
> > Same rules as that of gcc C front end have been used.
> >
> > -Gaurav Gautam
> > >
> > >
> > >
> > > Paul



More information about the Fortran mailing list