Skip to content

[flang] Intrinsic SELECTED_CHAR_KIND returns a different value from other compilers when there is a heading space in NAME #139156

Open
@DanielCChen

Description

@DanielCChen

Consider the following code:

program main
print *,selected_char_kind(" ascii")      ! heading space test
end

All gfortran, ifort and XLF returns -1 because of the heading space. Flang returns 1 however.
Is this different behavior intentional?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions