[flang-commits] [flang] [flang] Add guidelines for referencing the Fortran Standard (PR #188591)

via flang-commits flang-commits at lists.llvm.org
Thu Mar 26 07:31:15 PDT 2026


================
@@ -97,6 +97,13 @@ when creating names.
 well as you do and avoid distracting her by calling out usage of new
 features in comments.
 
+### Referencing the Fortran Standard
+1. When referencing the Fortran Standard, specify the version number. The
+   default version is considered to be Fortran 2018.
+1. When referencing a rule or constraint number, qualify it with the Fortran
+   version (e.g., `F2023:R1526`). If no version is mentioned, the default is
+   assumed to be `F2018`.
----------------
kwyatt-ext wrote:

I prefer `F2023 R1526`, but have been getting review comments for lacking the apostrophe.  I definitely think we need to have a consensus on the Discourse before pinning it down.

https://github.com/llvm/llvm-project/pull/188591


More information about the flang-commits mailing list