Commit 3ff1def
committed
[flang] Refine checks on assignments to coarrays
F'2023 10.2.1.2 paragraph 2 imposes some requirements on the left-hand sides
of assignments when they have coindices, and one was not checked while another
was inaccurately checked. In short, intrinsic assignment to a coindexed object
can't change its type, and neither can it affect allocatable components.1 parent f6e8366 commit 3ff1def
File tree
2 files changed
+22
-12
lines changed- flang
- lib/Semantics
- test/Semantics
2 files changed
+22
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3293 | 3293 | | |
3294 | 3294 | | |
3295 | 3295 | | |
3296 | | - | |
3297 | | - | |
3298 | | - | |
3299 | | - | |
3300 | | - | |
3301 | | - | |
3302 | | - | |
3303 | | - | |
3304 | | - | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
| 3302 | + | |
| 3303 | + | |
| 3304 | + | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
3305 | 3312 | | |
3306 | 3313 | | |
3307 | 3314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
11 | | - | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
0 commit comments