[flang-commits] [flang] [flang] Do not write implicit SAVE attribute into the mod file. (PR #67215)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Sat Sep 23 10:45:29 PDT 2023
================
@@ -244,6 +244,14 @@ bool ModFileWriter::PutComponents(const Symbol &typeSymbol) {
}
}
+// Return the symbol's attributes that should be written
+// into the mod file.
+static Attrs getSymbolAttrsToWrite(const Symbol &symbol) {
+ // Is SAVE attribute is implicit, it should be omitted
+ // to not violate F202x C862 for a common block member.
+ return symbol.attrs() & ~(symbol.implicitAttrs() & Attrs{Attr::SAVE});
----------------
klausler wrote:
This should apply to all implicit attributes, not just `SAVE`, yes?
https://github.com/llvm/llvm-project/pull/67215
More information about the flang-commits
mailing list