[flang-commits] [flang] [flang] Missing function-vs-subroutine checks on bindings (PR #177699)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Sat Jan 24 16:47:19 PST 2026
================
@@ -0,0 +1,80 @@
+!RUN: %python %S/test_errors.py %s %flang_fc1 -pedantic
+module m
+ type :: tbps
+ contains
+ procedure, nopass :: fprocf, fprocs, ffunc1, ffunc2, ffunc3, fsub
+ end type
+ contains
+ function fprocf()
+ procedure(), pointer :: fprocf
+ fprocf => func
+ end
+ function fprocs()
+ procedure(), pointer :: fprocs
+ fprocs => sub
+ end
+ function ffunc1()
+ procedure(), pointer :: ffunc1
+ real ffunc1
----------------
eugeneepshteyn wrote:
`ffunc1` declared twice?
https://github.com/llvm/llvm-project/pull/177699
More information about the flang-commits
mailing list