TargetStatementEnum::CompatibleDo)) {
errorHandler.Say(doTarget.parserCharBlock,
parser::MessageFormattedText{
- "END DO or CONTINUE must be used to terminate a labeled DO loop"_err_en_US});
+ "A DO loop should terminate with an END DO or CONTINUE"_err_en_US});
} else {
errorHandler.Say(doTarget.parserCharBlock,
parser::MessageFormattedText{
- "Only an END DO or CONTINUE should be used to terminate a labeled DO loop"_en_US});
+ "A DO loop should terminate with an END DO or CONTINUE"_en_US});
}
} else {
loopBodies.emplace_back(SkipLabel(position), doTarget.parserCharBlock);
! See R1131 and C1131
! RUN: ${F18} -funparse-with-symbols %s 2>&1 | ${FileCheck} %s
-! CHECK: Only an END DO or CONTINUE should be used to terminate a labeled DO loop
+! CHECK: A DO loop should terminate with an END DO or CONTINUE
program endDo
do 10 i = 1, 5