[PATCH] D107575: [Flang] Ported test_errors.sh to Python

Kiran Chandramohan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 12 13:15:06 PDT 2021


kiranchandramohan added a comment.

In D107575#2941859 <https://reviews.llvm.org/D107575#2941859>, @Meinersbur wrote:

> Only `resolve67.f90` still failing. What is the nondeterministic function?

I think it is the following condition from CheckHelper::CheckDefinedOperator in lib/Semantics/check-declarations.cpp. I suspect this happens due to the fact that operands of a bitwise operator can be evaluated in any order. Since there are errors for both the operands (invocations of CheckDefinedOperatorArg on arguments 0 and 1), the order in which the error is printed depends on the evaluation order.

  } else if (!CheckDefinedOperatorArg(opName, specific, proc, 0) |
      !CheckDefinedOperatorArg(opName, specific, proc, 1)) {
    return false; // error was reported
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107575/new/

https://reviews.llvm.org/D107575



More information about the llvm-commits mailing list