Commit 7dd4c48
committed
Work around an illegal Ada 2012 construct now spotted by the compiler
The construct is the function call in the return statement of Backward,
which is illegal per RM 6.4.1(6.4): In a function call, the accessibility
level of the actual object for each explicitly aliased parameter shall not
be statically deeper than the accessibility level of the master of the call.
The fix would be to make the Self parameter explicitly aliased, but it's a
bit painful since the function is overriding. And it's legal in Ada 2022.
Issue: eng/toolchain/gnat#16961 parent 42f94c2 commit 7dd4c48
File tree
1 file changed
+2
-0
lines changed- source/text/implementation
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
0 commit comments