Skip to content

[Flang] verification of lowering to FIR failed with "'arith.extui' op operand type 'i32' and result type 'i8' are cast incompatible" #107208

Open
@k-arrows

Description

@k-arrows

The following program test.f90 causes the error. If this program should be rejected, a semantic error should be output.

character(kind=4, len=1) :: c = '0'
print *, ichar(c, 1)
end
# flang-new test.f90
error: loc("/tmp/test.f90":2:10): 'arith.extui' op operand type 'i32' and result type 'i8' are cast incompatible
error: verification of lowering to FIR failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorflang:ir

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions