Skip to content

[Flang] Parsing error with LOOP COUNT compiler directive #56678

@UsmanNadeem

Description

@UsmanNadeem

We get: error: expected end of line

Sample code: https://godbolt.org/z/hrM8PKPef

function foo(m)
    !DIR$ LOOP COUNT (10000)
    ! or another syntax
    ! !DIR$ LOOP COUNT MAX=10000, MIN=30, AVG=500
    do n = 1, m
       print*,  n
    end do
end function foo

Reference from ifort: https://www.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/language-reference/a-to-z-reference/j-to-l/loop-count.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions