Index: flang/lib/Semantics/check-io.cpp =================================================================== --- flang/lib/Semantics/check-io.cpp +++ flang/lib/Semantics/check-io.cpp @@ -231,6 +231,9 @@ if (!IsVariable(*expr)) { context_.Say(format.source, "Assigned format label must be a scalar variable"_err_en_US); + } else if (context_.ShouldWarn(common::LanguageFeature::Assign)) { + context_.Say(format.source, + "Assigned format labels are deprecated"_port_en_US); } return; }