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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #4 from janus at gcc dot gnu.org ---
(In reply to janus from comment #1)
> With gfortran 8 and trunk there is even a segfault at runtime (on the line
> "substr = '123'"), and the warning mentioned in PR 56670 comment 5:
> 
>           substr = '123'
>  
> Warning: ‘.substr’ is used uninitialized in this function [-Wuninitialized]

I guess the varying runtime behavior is caused by the uninitialized string
length. Setting it to the proper value should fix this bug.

Reply via email to