[flang-commits] [flang] 8b5eacb - [flang][NFC] Document an extension (#71609)

via flang-commits flang-commits at lists.llvm.org
Mon Nov 13 15:50:53 PST 2023


Author: Peter Klausler
Date: 2023-11-13T15:50:49-08:00
New Revision: 8b5eacb4a66e06cb88a8cafaa3e6c5635d964848

URL: https://github.com/llvm/llvm-project/commit/8b5eacb4a66e06cb88a8cafaa3e6c5635d964848
DIFF: https://github.com/llvm/llvm-project/commit/8b5eacb4a66e06cb88a8cafaa3e6c5635d964848.diff

LOG: [flang][NFC] Document an extension (#71609)

Fortran free form line continuation with '&' works with this compiler
even across the end of an included source file, as it does with most
other Fortran compilers. This extension should be documented.

Added: 
    

Modified: 
    flang/docs/Extensions.md

Removed: 
    


################################################################################
diff  --git a/flang/docs/Extensions.md b/flang/docs/Extensions.md
index c64a7d53d46ea10..03d4310466485c5 100644
--- a/flang/docs/Extensions.md
+++ b/flang/docs/Extensions.md
@@ -293,7 +293,7 @@ end
   it's an error only if the resolution is ambiguous.
 * An entity may appear in a `DATA` statement before its explicit
   type declaration under `IMPLICIT NONE(TYPE)`.
-* INCLUDE lines can start in any column, can be preceded in
+* `INCLUDE` lines can start in any column, can be preceded in
   fixed form source by a '0' in column 6, can contain spaces
   between the letters of the word INCLUDE, and can have a
   numeric character literal kind prefix on the file name.
@@ -312,6 +312,9 @@ end
   a portability warning.
   The Fortran standard doesn't allow `SIZE=` with formatted input
   modes that might require look-ahead, perhaps to ease implementations.
+* When a file included via an `INCLUDE` line or `#include` directive
+  has a continuation marker at the end of its last line in free form,
+  Fortran line continuation works.
 
 ### Extensions supported when enabled by options
 
@@ -439,7 +442,7 @@ end
   This is especially desirable when two generics of the same
   name are combined due to USE association and the mixture may
   be inadvertent.
-* Since Fortran 90, INCLUDE lines have been allowed to have
+* Since Fortran 90, `INCLUDE` lines have been allowed to have
   a numeric kind parameter prefix on the file name.  No other
   Fortran compiler supports them that I can find.
 * A `SEQUENCE` derived type is required (F'2023 C745) to have


        


More information about the flang-commits mailing list