[Patch, fortran] PR26741 - Elemental functions not permitted in initialization expressions
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Mar 18 20:24:00 GMT 2006
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
More information about the Gcc-patches
mailing list