[Bug fortran/85579] [9 regression] SIGSEV in fortran test case gfortran.dg/pr51434.f90 starting with r259754

anlauf at gmx dot de gcc-bugzilla@gcc.gnu.org
Wed May 2 20:52:00 GMT 2018


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

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #6 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Richard Biener from comment #5)
> FE issue I believe.

It looks like the testcase got corrupted.

Testing with another compiler shows that it is invalid as is.  E.g.,

% nagfor pr51434.f90
NAG Fortran Compiler Release 6.1(Tozai) Build 6106
Error: pr51434.f90, line 9: Dimension 1 of value for array T has extent 18
instead of 5
Errors in declarations, no further processing for FOO
Error: pr51434.f90, line 13: USE of module FOO which has errors
Errors in declarations, no further processing for BAR
[NAG Fortran Compiler error termination, 2 errors]


Replacing the line

      character(len=1):: t(n) = transfer('abcde             ', s)               

by

      character(len=1):: t(n) = transfer('abcde', s)

makes it work properly.


More information about the Gcc-bugs mailing list