[flang-commits] [flang] [Flang] Extra check for character length in pointer allocation (PR #95145)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Thu Jun 13 08:30:01 PDT 2024


================
@@ -495,23 +498,24 @@ bool AllocationCheckerHelper::RunChecks(SemanticsContext &context) {
           "Allocatable object in ALLOCATE must be type compatible with type-spec"_err_en_US);
       return false;
     }
+    if (!HaveSameAssumedTypeParameters(*type_, *allocateInfo_.typeSpec)) {
+      // C935
----------------
klausler wrote:

Use the new constraint number from the latest standard ("F'2023 C939").

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


More information about the flang-commits mailing list