[flang-commits] [PATCH] D134399: [flang][NFC] Document non-extension (user ELEMENTAL procedures as actual arguments)

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Sep 21 17:00:55 PDT 2022


klausler created this revision.
klausler added a reviewer: clementval.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Some Fortran compilers accept user-defined ELEMENTAL procedures as actual
arguments corresponding to (necessarily) non-ELEMENTAL dummy procedures;
most do not, and f18 is one of them.  Document the fact that this is not
a supported extension.


https://reviews.llvm.org/D134399

Files:
  flang/docs/Extensions.md


Index: flang/docs/Extensions.md
===================================================================
--- flang/docs/Extensions.md
+++ flang/docs/Extensions.md
@@ -314,6 +314,9 @@
 * VMS listing control directives (`%LIST`, `%NOLIST`, `%EJECT`)
 * Continuation lines on `INCLUDE` lines
 * `NULL()` actual argument corresponding to an `ALLOCATABLE` dummy data object
+* User (non-intrinsic) `ELEMENTAL` procedures may not be passed as actual
+  arguments, in accordance with the standard; some Fortran compilers
+  permit such usage.
 
 ## Preprocessing behavior
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134399.462046.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220922/bf54fc87/attachment.bin>


More information about the flang-commits mailing list