Commit c40d413
committed
[flang] Catch bad usage case of whole assumed-size array
Whole assumed-size arrays are generally not allowed outside
specific contexts, where expression analysis notes that
they can appear. But contexts can nest, and in the case
of an actual argument that turns out to be an array constructor,
the permission to use a whole assumed-size array must be
rescinded.
Fixes #131909.1 parent 7598cea commit c40d413
File tree
3 files changed
+14
-8
lines changed- flang
- include/flang/Semantics
- lib/Semantics
- test/Semantics
3 files changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | 261 | | |
266 | 262 | | |
267 | | - | |
268 | | - | |
| 263 | + | |
| 264 | + | |
269 | 265 | | |
270 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1915 | 1915 | | |
1916 | 1916 | | |
1917 | 1917 | | |
1918 | | - | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
1919 | 1921 | | |
1920 | 1922 | | |
1921 | 1923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
0 commit comments