This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR91717 - ICE on concatenating deferred-length character and character literal
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>, Thomas Koenig <tkoenig at netcologne dot de>
- Date: Tue, 10 Sep 2019 22:50:30 -0700
- Subject: Re: [Patch, fortran] PR91717 - ICE on concatenating deferred-length character and character literal
- References: <CAGkQGi+Lh_2w+BP6c-2h_ru-5R91DF3=CK8+VvQE0ELUwTOMpQ@mail.gmail.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Wed, Sep 11, 2019 at 06:44:50AM +0100, Paul Richard Thomas wrote:
> ===================================================================
> *** gcc/testsuite/gfortran.dg/dependency_55.f90 (nonexistent)
> --- gcc/testsuite/gfortran.dg/dependency_55.f90 (working copy)
> ***************
> *** 0 ****
> --- 1,17 ----
> + ! { dg-do run }
> + !
> + ! Test the fix for PR91717 in which the concatenation operation ICEd.
> + !
> + ! Contributed by Damian Rouson <damian@sourceryinstitute.org>
> + !
> + type core
> + character (len=:), allocatable :: msg
> + end type
> +
> + type(core) :: my_core
> +
> + my_core%msg = my_core%msg//"my message is: "
my_core%msg is undefined on the RHS. This is invalid
Fortran. Not sure whether your patch is correct or not.
--
Steve