Issue 83273
Summary [Flang] Missing diagnose when procedure pointer is subroutine but the pointer assignment target is a function
Labels bug, flang:frontend
Assignees
Reporter DanielCChen
    Consider the following code:
```
    IMPLICIT NONE ! p is not implicitly typeable
    REAL, EXTERNAL :: func
    PROCEDURE(), POINTER :: p1

    p1 => func  ! illegal
    END PROGRAM
```
`p1` is not explicitly or implicitly typed, so it should represent a subroutine.

Flang currently compiles the above code successfully.

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to