Skip to content

[flang] I/O Runtime failure with DC editor. #150047

@DanielCChen

Description

@DanielCChen

Consider the following code:

program main
    real(8) :: r1(10)

    open (1, form='formatted', status='scratch', access='stream')

    write (1, 300) (sin(j*1.0), j=1, 10)

    rewind 1

    read (1, '(dc, 10f15.3)') r1

    close(1)

300 format (DC, 1x, 10(f10.3, ";"))

end

Flang failed at runtime as:

> a.out

fatal Fortran runtime error(t.f:10): Bad real input data at column 13 of record 1
IOT/Abort trap(coredump)

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions