Skip to content

[flang] Missing diagnostic on intrinsic SIZE when the argumen DIM is equal to the rank. #139600

Closed
@DanielCChen

Description

@DanielCChen

Consider the following code:

implicit none
real :: a(10, 10)
print*, size(a, dim=2)
end

The standard requires the DIM argument to be less than the rank of SOUCE. This usage should be diagnosed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    flang:frontendquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions