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

            Bug ID: 83225
           Summary: [8.0 regression] runtime error in transfer.c
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: juergen.reuter at desy dot de
  Target Milestone: ---

Created attachment 42750
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42750&action=edit
Reproducer

The attached example which I unfortunately couldn't further reduce leads to the
following runtime error: 
2$ ./rt_error 
           4
At line 3218 of file main_ut.f90
Fortran runtime error: End of file

Error termination. Backtrace:
#0  0x7f70c18c9004 in formatted_transfer_scalar_write
        at ../../../libgfortran/io/transfer.c:2059
#1  0x7f70c18c916c in formatted_transfer
        at ../../../libgfortran/io/transfer.c:2279
#2  0x42bd6f in ???
#3  0x42c664 in ???
#4  0x42c69b in ???
#5  0x7f70c0bc9f44 in ???
#6  0x401288 in ???
#7  0xffffffffffffffff in ???

The gcc/gfortran version is r255190 with the patch from 
https://gcc.gnu.org/viewcvs/gcc/branches/gcc-7-branch/gcc/fortran/resolve.c?r1=255029&r2=255205&pathrev=255205
applied. 
The reproducer works with gfortran 4.8, 4.9, 5, 6, 7, nagfor 6.1 and ifort 17
and 18. It contains the iso_varying_string module.

Reply via email to