Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang][runtime] Fix empty FINDLOC() results #75251

Merged
merged 1 commit into from
Dec 26, 2023
Merged

Commits on Dec 12, 2023

  1. [flang][runtime] Fix empty FINDLOC() results

    When FINDLOC() can't find its target value among the unmasked
    array elements, it must return a zero result.  Its implementation
    doesn't sufficiently distinguish a zero result from a hit
    in an array with lower bound(s) less than one.  Fix by adding
    a flag to distinguish the case with no hits from cases with
    hits.
    
    Fixes llvm-test-suite/Fortran/gfortran/regression/findloc_6.f90.
    klausler committed Dec 12, 2023
    Configuration menu
    Copy the full SHA
    051b213 View commit details
    Browse the repository at this point in the history