[flang-commits] [flang] [flang] fix Werror=dangling-reference (PR #138793)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Fri May 16 08:34:31 PDT 2025
================
@@ -421,7 +421,8 @@ static void CheckSubscripts(
static void CheckSubscripts(
semantics::SemanticsContext &context, CoarrayRef &ref) {
- const Symbol &coarraySymbol{ref.GetBase().GetLastSymbol()};
+ const auto &base = ref.GetBase();
----------------
klausler wrote:
Please use braced initialization here.
https://github.com/llvm/llvm-project/pull/138793
More information about the flang-commits
mailing list