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

Andre Kuhlenschmidt via flang-commits flang-commits at lists.llvm.org
Wed Dec 31 11:16:45 PST 2025


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

This could be `WarnInDeadCode` if we think we will want one flag to control all warnings in dead code. Otherwise this seems like an ok name for issues at hand.

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


More information about the flang-commits mailing list