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] PR91717 - ICE on concatenating deferred-length character and character literal


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


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