-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit ensures that the entry index expression of an accept statement is binded to the type defined by the corresponding entry declaration. As per ARM 9.5.2: the expected type for an entry index is that of the subtype defined by the discrete subtype definition of the corresponding entry declaration.
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
procedure Test is | ||
task t is | ||
entry ent1 (character); | ||
end t; | ||
|
||
task body t is | ||
begin | ||
accept ent1 ('c') do | ||
null; | ||
end; | ||
pragma Test_Statement; | ||
end t; | ||
begin | ||
null; | ||
end Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Analyzing test.adb | ||
################## | ||
|
||
Resolving xrefs for node <AcceptStmtWithStmts test.adb:8:7-10:11> | ||
***************************************************************** | ||
|
||
Expr: <Chr "'c'" test.adb:8:20-8:23> | ||
references: <SyntheticDefiningName "'c'" __standard:21:3-21:27> | ||
type: <ConcreteTypeDecl ["Character"] __standard:21:3-21:27> | ||
expected type: <ConcreteTypeDecl ["Character"] __standard:21:3-21:27> | ||
|
||
|
||
Done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
driver: name-resolution | ||
input_sources: [test.adb] |