Skip to content

[flang] Missing semantic error for procedure pointer target that is not known to be a procedure  #73215

@jeanPerier

Description

@jeanPerier

The following program is accepted by flang, while all other compilers reject it:

  procedure(real), pointer :: p
  p => x
end

(Flang implicitly resolves x to be a procedure).

Failing tests in the llvm-test-suite:

https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/proc_ptr_46.f90
https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/proc_ptr_37.f90

Metadata

Metadata

Assignees

Labels

flang:frontendquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions