Commit 36c9b4f
authored
[flang] Fix character length checking in ALLOCATE (llvm#163657)
The known character length compatibility check for ALLOCATE statements
needs to allow for negative lengths, which are effectively zero.
Fixes llvm#163242.1 parent a6181dc commit 36c9b4f
File tree
2 files changed
+7
-2
lines changed- flang
- lib/Semantics
- test/Semantics
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | | - | |
| 457 | + | |
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments