| Issue |
83549
|
| Summary |
[flang] flang accepts definition of selectors that are polymorphic pointer function results. Nag, gfortran, xlf do not.
|
| Labels |
question,
flang:semantics
|
| Assignees |
klausler
|
| Reporter |
jeanPerier
|
gfortran expects the following test to be rejected by semantic on the basis that the selector cannot be defined.
https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/select_type_17.f90
Flang, ifort, and nvfortran accept it, and I do not see why it should be rejected given `fun(1)` is a variable since `fun` result is a POINTER (F2018 and C1158 and R902).
I am just surprised that all of nag, xlf, and gfortran reject it, and I would like to confirm that this program is valid and I am not missing some rule here.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs