aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaModule.cpp
diff options
context:
space:
mode:
authorPeter Klausler <pklausler@nvidia.com>2022-12-01 10:13:57 -0800
committerPeter Klausler <pklausler@nvidia.com>2022-12-03 11:09:59 -0800
commitfee041f69de071cf813c332abc8be279ff7c0bb7 (patch)
tree1d8270d34c6d776a52b2b1363b16bbf791384502 /clang/lib/Sema/SemaModule.cpp
parent61cb96404ed27a95df9296460d9920e8c13379e5 (diff)
downloadllvm-fee041f69de071cf813c332abc8be279ff7c0bb7.zip
llvm-fee041f69de071cf813c332abc8be279ff7c0bb7.tar.gz
llvm-fee041f69de071cf813c332abc8be279ff7c0bb7.tar.bz2
[flang] Document and warn about an extension
Standard Fortran allows type-bound procedure bindings to only be called, and disallows them from being used in other contexts where a procedure name can be: as the target of a procedure pointer assignment statement, and as an actual argument that corresponds to a dummy procedure. So long as the interfaces match, there's no good reason for these uses to be errors, and there some obvious use cases in polymorphic programming. So emit portability warnings rather than errors, and document this usage as an extension. Differential Revision: https://reviews.llvm.org/D139127
Diffstat (limited to 'clang/lib/Sema/SemaModule.cpp')
0 files changed, 0 insertions, 0 deletions