flang
flang copied to clipboard
Segmentation fault
When I compile the following code with flang on MacOsX and run it, it produces a segmentation fault. With gfortran, no issue is raised.
program main abstract interface subroutine void end subroutine end interface integer ::nx procedure(void),pointer::pointr pointr => pointed nx = 1 call my_subroutine call pointr ! contains ! subroutine pointed end subroutine subroutine my_subroutine nx = nx+1 end subroutine end program
Homebrew flang version 20.1.2 Target: x86_64-apple-darwin24.4.0 Thread model: posix InstalledDir: /usr/local/Cellar/flang/20.1.2/libexec Configuration file: /usr/local/Cellar/flang/20.1.2/libexec/flang.cfg Configuration file: /usr/local/etc/clang/x86_64-apple-darwin24.cfg