Commit c013228
committed
Ada: Fix explicit raise on subtype of lock-free protected type
The issue is that the Uses_Lock_Free flag is not propagated to the subtype.
gcc/ada/
* sem_ch3.adb (Analyze_Subtype_Declaration) <Concurrent_Kind>:
Propagate the Uses_Lock_Free flag for protected types.
gcc/testsuite/
* gnat.dg/protected_subtype1.adb: New test.1 parent 8836210 commit c013228
2 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6145 | 6145 | | |
6146 | 6146 | | |
6147 | 6147 | | |
| 6148 | + | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
6148 | 6152 | | |
6149 | 6153 | | |
6150 | 6154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments