[flang-commits] [flang] [flang] Fix SelectCaseOpConversion to convert block signatures (PR #175298)

via flang-commits flang-commits at lists.llvm.org
Mon Jan 12 06:23:09 PST 2026


khaki3 wrote:

> This looks ok but do you have any Fortran example where the it would currently fail?

Here is the minimum reproducer:
```fortran
subroutine repro(l)
  integer :: l
  integer, pointer :: p(:)
  integer, target :: a1(2), a2(2)

  select case (l)
    case (1)
      p => a1
    case (2)
      p => a2
  end select

  p = 0
end subroutine
```


https://github.com/llvm/llvm-project/pull/175298


More information about the flang-commits mailing list