File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -437,6 +437,11 @@ void CheckHelper::Check(const Symbol &symbol) {
437
437
symbol.name ());
438
438
}
439
439
}
440
+ if (symbol.attrs ().test (Attr::ASYNCHRONOUS) &&
441
+ !evaluate::IsVariable (symbol)) {
442
+ messages_.Say (
443
+ " An entity may not have the ASYNCHRONOUS attribute unless it is a variable" _err_en_US);
444
+ }
440
445
}
441
446
442
447
void CheckHelper::CheckCommonBlock (const Symbol &symbol) {
Original file line number Diff line number Diff line change @@ -54,6 +54,10 @@ subroutine forward
54
54
! ERROR: EXTERNAL attribute not allowed on 'bar'
55
55
external :: bar
56
56
57
+ ! ERROR: An entity may not have the ASYNCHRONOUS attribute unless it is a variable
58
+ asynchronous :: async
59
+ external :: async
60
+
57
61
! ERROR: PARAMETER attribute not allowed on 'm'
58
62
parameter (m= 2 )
59
63
! ERROR: PARAMETER attribute not allowed on 'foo'
You can’t perform that action at this time.
0 commit comments