This is the mail archive of the gcc-bugs@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]

[Bug fortran/58618] ICE with character substring and ASSOCIATE


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58618

Vladimir Fuka <vladimir.fuka at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.8.0                       |7.1.1

--- Comment #3 from Vladimir Fuka <vladimir.fuka at gmail dot com> ---
The wrong code is still in 7.1.1:

    character(1) :: s(1)
    s = "a"
    print *, s(1)(1:1) 
    associate (x=>s(1)(1:1))
      print *, x
    end associate
  end


> gfortran-7 pr58618.f90 
> ./a.out
 a 
 �

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