[PATCH] D97774: [flang] Detect circularly defined interfaces of procedures

Kiran Chandramohan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 2 14:04:27 PST 2021


kiranchandramohan added a comment.

I see a failure in the buildbot.
https://lab.llvm.org/buildbot/#/builders/33/builds/2845

/home/flang/flang-aarch64-ubuntu-clang/flang-aarch64-ubuntu-clang/llvm-project/flang/lib/Semantics/resolve-names.cpp:3655:25: error: loop variable 'procInCycle' of type 'const Fortran::common::Reference<const Fortran::semantics::Symbol>' creates a copy from type 'const Fortran::common::Reference<const Fortran::semantics::Symbol>' [-Werror,-Wrange-loop-construct]

  for (const auto procInCycle : procsInCycle) {
                  ^

/home/flang/flang-aarch64-ubuntu-clang/flang-aarch64-ubuntu-clang/llvm-project/flang/lib/Semantics/resolve-names.cpp:3655:14: note: use reference type 'const Fortran::common::Reference<const Fortran::semantics::Symbol> &' to prevent copying

  for (const auto procInCycle : procsInCycle) {
       ^~~~~~~~~~~~~~~~~~~~~~~~
                  &


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97774



More information about the llvm-commits mailing list