[flang][NFC] Fix typo in Cray pointee error message
authorKelvin Li <kli@ca.ibm.com>
Mon, 16 Jan 2023 19:03:55 +0000 (14:03 -0500)
committerKelvin Li <kli@ca.ibm.com>
Mon, 16 Jan 2023 19:09:01 +0000 (14:09 -0500)
flang/lib/Semantics/check-declarations.cpp
flang/test/Semantics/resolve61.f90

index 636410d..d9c13df 100644 (file)
@@ -798,7 +798,7 @@ void CheckHelper::CheckArraySpec(
   std::optional<parser::MessageFixedText> msg;
   if (symbol.test(Symbol::Flag::CrayPointee) && !isExplicit &&
       !canBeAssumedSize) {
-    msg = "Cray pointee '%s' must have must have explicit shape or"
+    msg = "Cray pointee '%s' must have explicit shape or"
           " assumed size"_err_en_US;
   } else if (IsAllocatableOrPointer(symbol) && !canBeDeferred &&
       !isAssumedRank) {
index 5223614..73f6ccb 100644 (file)
@@ -40,12 +40,12 @@ subroutine p6
 end
 
 subroutine p7
-  !ERROR: Cray pointee 'b' must have must have explicit shape or assumed size
+  !ERROR: Cray pointee 'b' must have explicit shape or assumed size
   pointer(a, b(:))
 contains
   subroutine s(x, y)
     real :: x(*)  ! assumed size
-    !ERROR: Cray pointee 'y' must have must have explicit shape or assumed size
+    !ERROR: Cray pointee 'y' must have explicit shape or assumed size
     real :: y(:)  ! assumed shape
     pointer(w, y)
   end