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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |8.5.0
      Known to work|                            |7.5.0

--- Comment #7 from anlauf at gcc dot gnu.org ---
(In reply to anlauf from comment #4)
> This fixes comment#2:
> 
> diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c

However, it does not fix the following even simpler example:

subroutine foo (d, e)
  implicit none
  character(len=10) :: d
  character(len=*)  :: e
  integer           :: i = 0
  d = '1234567890'(6    :10+i)         ! Warning
  d = '1234567890'(6+0*i:10+i)         ! Warning
  d = '1234567890'(6+1*i:10+i)         ! OK
  e = '1234567890'(6    :10+i)         ! OK
end

The code appears to work as expected, but I cannot find a way to suppress
the warning at -flto -O0.

Reply via email to