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, fortran] PR26741 - Elemental functions not permitted in initialization expressions


On Sat, Mar 18, 2006 at 06:15:01AM +0100, Paul Thomas wrote:
> 
> 2006-03-18  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	PR fortran/26716
> 	*expr.c (external_spec_function): Permit elemental functions.
> 
> 2006-03-17  Paul Thomas  <pault@gcc.gnu.org>
> 
> 	PR fortran/26716
> 	* gfortran.dg/elemental_initializer_1.f90: New test.
> 

I think the patch is okay, but the testcase fails because
len_ is never set.

>  elemental function len_ (string) result (length)
>    type(varying_string), intent(in) :: string
>    integer                          :: length

     length = 0

>  end function len_

-- 
Steve


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