[flang] Fixed up messages per comments from Peter Klausler.
authorPeter Steinfeld <psteinfeld@nvidia.com>
Wed, 10 Apr 2019 17:52:47 +0000 (10:52 -0700)
committerPeter Steinfeld <psteinfeld@nvidia.com>
Wed, 10 Apr 2019 17:52:47 +0000 (10:52 -0700)
Original-commit: flang-compiler/f18@4103ca4297e3c4cb2cb0dd4378ea3380b37f9874
Reviewed-on: https://github.com/flang-compiler/f18/pull/398
Tree-same-pre-rewrite: false

flang/lib/semantics/resolve-labels.cc
flang/test/semantics/canondo07.f90

index 466f271..81c9674 100644 (file)
@@ -898,12 +898,12 @@ void CheckLabelDoConstraints(const SourceStmtList &dos,
               TargetStatementEnum::CompatibleDo)) {
         errorHandler.Say(doTarget.parserCharBlock,
             parser::MessageFormattedText{
-                "'%u' DO statements must terminate with END DO or CONTINUE"_err_en_US,
+                "'%u' Obsolete construct.  A DO loop should terminate with END DO or CONTINUE"_err_en_US,
                 SayLabel(label)});
       } else {
         errorHandler.Say(doTarget.parserCharBlock,
             parser::MessageFormattedText{
-                "'%u' Obsolete construct not allowed.  DO statements must terminate with END DO or CONTINUE"_en_US,
+                "'%u' A DO loop should terminate with END DO or CONTINUE statement"_en_US,
                 SayLabel(label)});
       }
     } else {
index 5fb8fc6..8ea7aca 100644 (file)
@@ -16,7 +16,7 @@
 ! See R1131 and C1131
 
 ! RUN: ${F18} -funparse-with-symbols %s 2>&1 | ${FileCheck} %s
-! CHECK: Obsolete construct not allowed.  DO statements must terminate with END DO or CONTINUE
+! CHECK: A DO loop should terminate with END DO or CONTINUE
 
 program endDo
   do 10 i = 1, 5