[all-commits] [llvm/llvm-project] a61835: [flang] Fix use-associated false-positive error

Daniil Dudkin via All-commits all-commits at lists.llvm.org
Fri May 20 02:14:36 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a61835b1e3f5e074f4c8174edadfc6bef975138f
      https://github.com/llvm/llvm-project/commit/a61835b1e3f5e074f4c8174edadfc6bef975138f
  Author: Daniil Dudkin <d.dudkin at partner.samsung.com>
  Date:   2022-05-20 (Fri, 20 May 2022)

  Changed paths:
    M flang/lib/Evaluate/characteristics.cpp
    A flang/test/Semantics/resolve112.f90

  Log Message:
  -----------
  [flang] Fix use-associated false-positive error

For the program provided as the test case flang fired the following
error:

    error: Semantic errors in main.f90
    error: 'foo' is not a procedure

This change fixes the error by postponing handling of `UseErrorDetails`
from `CharacterizeProcedure` to a later stage.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D125791




More information about the All-commits mailing list