This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR26741 - Elemental functions not permitted in initialization expressions
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Thomas <paulthomas2 at wanadoo dot fr>
- Cc: patch <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Sat, 18 Mar 2006 12:24:16 -0800
- Subject: Re: [Patch, fortran] PR26741 - Elemental functions not permitted in initialization expressions
- References: <441B9755.3070902@wanadoo.fr>
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