Skip to content

Segmentation fault #1463

@drazafin

Description

@drazafin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions