@@ -3430,8 +3430,7 @@ void CheckHelper::CheckDioDummyIsDerived(const Symbol &subp, const Symbol &arg,
3430
3430
}
3431
3431
} else {
3432
3432
messages_.Say (arg.name (),
3433
- " Dummy argument '%s' of a defined input/output procedure must have a"
3434
- " derived type" _err_en_US,
3433
+ " Dummy argument '%s' of a defined input/output procedure must have a derived type" _err_en_US,
3435
3434
arg.name ());
3436
3435
}
3437
3436
}
@@ -3447,16 +3446,14 @@ void CheckHelper::CheckDioDummyIsDefaultInteger(
3447
3446
}
3448
3447
}
3449
3448
messages_.Say (arg.name (),
3450
- " Dummy argument '%s' of a defined input/output procedure"
3451
- " must be an INTEGER of default KIND" _err_en_US,
3449
+ " Dummy argument '%s' of a defined input/output procedure must be an INTEGER of default KIND" _err_en_US,
3452
3450
arg.name ());
3453
3451
}
3454
3452
3455
3453
void CheckHelper::CheckDioDummyIsScalar (const Symbol &subp, const Symbol &arg) {
3456
3454
if (arg.Rank () > 0 || arg.Corank () > 0 ) {
3457
3455
messages_.Say (arg.name (),
3458
- " Dummy argument '%s' of a defined input/output procedure"
3459
- " must be a scalar" _err_en_US,
3456
+ " Dummy argument '%s' of a defined input/output procedure must be a scalar" _err_en_US,
3460
3457
arg.name ());
3461
3458
}
3462
3459
}
@@ -3533,8 +3530,7 @@ void CheckHelper::CheckDioAssumedLenCharacterArg(const Symbol &subp,
3533
3530
context_.defaultKinds ().GetDefaultKind (
3534
3531
TypeCategory::Character))) {
3535
3532
messages_.Say (arg->name (),
3536
- " Dummy argument '%s' of a defined input/output procedure"
3537
- " must be assumed-length CHARACTER of default kind" _err_en_US,
3533
+ " Dummy argument '%s' of a defined input/output procedure must be assumed-length CHARACTER of default kind" _err_en_US,
3538
3534
arg->name ());
3539
3535
}
3540
3536
}
@@ -3547,10 +3543,9 @@ void CheckHelper::CheckDioVlistArg(
3547
3543
CheckDioDummyIsDefaultInteger (subp, *arg);
3548
3544
CheckDioDummyAttrs (subp, *arg, Attr::INTENT_IN);
3549
3545
const auto *objectDetails{arg->detailsIf <ObjectEntityDetails>()};
3550
- if (!objectDetails || !objectDetails->shape ().CanBeDeferredShape ()) {
3546
+ if (!objectDetails || !objectDetails->shape ().CanBeAssumedShape ()) {
3551
3547
messages_.Say (arg->name (),
3552
- " Dummy argument '%s' of a defined input/output procedure must be"
3553
- " deferred shape" _err_en_US,
3548
+ " Dummy argument '%s' of a defined input/output procedure must be assumed shape" _err_en_US,
3554
3549
arg->name ());
3555
3550
}
3556
3551
}
@@ -3565,8 +3560,7 @@ void CheckHelper::CheckDioArgCount(
3565
3560
: 4 )};
3566
3561
if (argCount != requiredArgCount) {
3567
3562
SayWithDeclaration (subp,
3568
- " Defined input/output procedure '%s' must have"
3569
- " %d dummy arguments rather than %d" _err_en_US,
3563
+ " Defined input/output procedure '%s' must have %d dummy arguments rather than %d" _err_en_US,
3570
3564
subp.name (), requiredArgCount, argCount);
3571
3565
context_.SetError (subp);
3572
3566
}
@@ -3578,15 +3572,13 @@ void CheckHelper::CheckDioDummyAttrs(
3578
3572
Attrs attrs{arg.attrs ()};
3579
3573
if (!attrs.test (goodIntent)) {
3580
3574
messages_.Say (arg.name (),
3581
- " Dummy argument '%s' of a defined input/output procedure"
3582
- " must have intent '%s'" _err_en_US,
3575
+ " Dummy argument '%s' of a defined input/output procedure must have intent '%s'" _err_en_US,
3583
3576
arg.name (), AttrToString (goodIntent));
3584
3577
}
3585
3578
attrs = attrs - Attr::INTENT_IN - Attr::INTENT_OUT - Attr::INTENT_INOUT;
3586
3579
if (!attrs.empty ()) {
3587
3580
messages_.Say (arg.name (),
3588
- " Dummy argument '%s' of a defined input/output procedure may not have"
3589
- " any attributes" _err_en_US,
3581
+ " Dummy argument '%s' of a defined input/output procedure may not have any attributes" _err_en_US,
3590
3582
arg.name ());
3591
3583
}
3592
3584
}
@@ -3599,8 +3591,8 @@ void CheckHelper::CheckDefinedIoProc(const Symbol &symbol,
3599
3591
const auto *binding{ultimate.detailsIf <ProcBindingDetails>()};
3600
3592
const Symbol &specific{*(binding ? &binding->symbol () : &ultimate)};
3601
3593
if (ultimate.attrs ().test (Attr::NOPASS)) { // C774
3602
- messages_.Say (" Defined input/output procedure '%s' may not have NOPASS "
3603
- " attribute" _err_en_US,
3594
+ messages_.Say (
3595
+ " Defined input/output procedure '%s' may not have NOPASS attribute" _err_en_US,
3604
3596
ultimate.name ());
3605
3597
context_.SetError (ultimate);
3606
3598
}
0 commit comments