| Issue |
176861
|
| Summary |
[FLANG] Procedure pointer declaration with polymorphic interface specification fails.
|
| Labels |
flang
|
| Assignees |
|
| Reporter |
ShashwathiNavada
|
Currently Flang throws error for the syntax, `procedure(class(derived_type()), pointer :: ptr`. Reduced testcase is given below.
```
program test
type :: easy
integer :: i
end type
type :: check
procedure(class(easy)),pointer, nopass :: X10 !error
end type
end program
```
This program throws error:
```
error: CLASS entity 'x10' must be a dummy argument, allocatable, or object pointer
procedure(class(easy)),pointer, nopass :: X10
^^^
```
As per Section [15.4.3.6](https://j3-fortran.org/doc/year/25/25-007r1.pdf) of Flang doc, the above syntax that declares a procedure pointer with polymorphic interface should be valid.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs