[flang-commits] [flang] [flang][doc] refine zero initialization extension documentation (PR #121956)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 7 09:32:33 PST 2025


================
@@ -160,7 +160,10 @@ end
 * `<>` as synonym for `.NE.` and `/=`
 * `$` and `@` as legal characters in names
 * Initialization in type declaration statements using `/values/`
-* Saved variables without explicit or default initializers are zero initialized.
+* Saved variables without explicit or default initializers are zero initialized,
+  except for implicitly saved scalar variables from the main program that are
----------------
jeanPerier wrote:

Thanks @kiranchandramohan, I actually started a patch before seeing your comment: https://github.com/llvm/llvm-project/pull/121968

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


More information about the flang-commits mailing list