[Fortran, committed] Fix PR fortran/30683

Steve Kargl sgk@troutmask.apl.washington.edu
Wed Feb 14 15:26:00 GMT 2007


On Wed, Feb 14, 2007 at 01:37:43AM -0800, Brooks Moses wrote:
> >! { dg-do compile }
> >! PR fortran/30683
> >! Code contributed by Salvatore Filippone.
> >!
> >module class_fld
> >   integer, parameter :: int_ = 1
> >  integer, parameter :: bnd_ = 2
> >  type fld
> >     integer                 :: size(2)
> >  end type fld
> >  !
> >  !  This interface is renaming the SIZE intrinsic procedure,  
> >  !  which led to a segmentation fault when trying to resolve
> >  !  the intrinsic symbol name.
> >  !
> >  interface size
> >     module procedure get_fld_size
> >  end interface
> 
> A quibble with the comment: This isn't renaming the SIZE intrinsic 
> procedure at all; it's extending it (or, alternately, overloading it).
> 

Feel free to change the comment.

-- 
Steve



More information about the Fortran mailing list