Skip to content

flang compiler if statement crashes with 8-byte integers #860

Open
@nikhil-mk

Description

@nikhil-mk

The following test fails in flang :

subroutine test()
       integer n2
       n2=10
       if (n2) 10,20,20
10 write(6,)'10'
       return
20 write(6,
)'20'
       end

error:
F90-F-0000-Internal compiler error. addili: illegal IL_TYPE(opc) 0 (test.f: 4)

Pull request #859 fixes this
@gklimowicz @sscalpone

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions