[flang-commits] [flang] [flang] Don't defer namelist processing under -pedantic (PR #188854)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Mon Apr 6 13:34:51 PDT 2026
================
@@ -7239,6 +7239,14 @@ bool DeclarationVisitor::Pre(const parser::NamelistStmt::Group &x) {
groupSymbol = &MakeSymbol(groupName, NamelistDetails{});
groupSymbol->ReplaceName(groupName.source);
}
+ // don't defer namelist processing with -pedantic
+ if(context().ShouldWarn(common::UsageWarning::NamelistNoDefer)) {
+ context().Warn(common::UsageWarning::NamelistNoDefer, "Namelist processing not deferred"_port_en_US);
----------------
eugeneepshteyn wrote:
The question is, if the user (who is likely not a compiler developer) sees the warning "Namelist processing not deferred", how should the user interpret it and what should the user do about it?
https://github.com/llvm/llvm-project/pull/188854
More information about the flang-commits
mailing list