[Patch,gfortran,ping] ENUMERATIONS and ENUMERATORS

Gaurav Gautam, Noida gauravga@noida.hcltech.com
Mon Oct 3 09:53:00 GMT 2005


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