[flang-commits] [flang] [flang] Emit warnings, not errors, for bad subscripts in dead code (PR #174040)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Dec 31 12:38:47 PST 2025


================
@@ -79,7 +79,7 @@ ENUM_CLASS(UsageWarning, Portability, PointerToUndefinable,
     CompatibleDeclarationsFromDistinctModules, ConstantIsContiguous,
     NullActualForDefaultIntentAllocatable, UseAssociationIntoSameNameSubprogram,
     HostAssociatedIntentOutInSpecExpr, NonVolatilePointerToVolatile,
-    RealConstantWidening, VolatileOrAsynchronousTemporary)
+    RealConstantWidening, VolatileOrAsynchronousTemporary, BadValueInDeadCode)
----------------
klausler wrote:

`UsageWarning::WarnInDeadCode` seems redundant to me.

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


More information about the flang-commits mailing list