Commit 9702ec0
authored
[flang] Fixed regression with CDEFINED linkage (#164616)
#162722 introduced a regression
that started creating initializers for CDEFINED variables. CDEFINED
variables cannot have initializers, because their storage is expected
come from elsewhere, likely outside of Fortran. Fixed the regression and
improved the regression test to catch the incorrect initialization case.
Also, based on the code review feedback, made CDEFINED variable
initialization a hard error and updated tests accordingly.1 parent a065505 commit 9702ec0
File tree
4 files changed
+11
-10
lines changed- flang
- include/flang/Support
- lib/Semantics
- test
- Lower
- Semantics
4 files changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9194 | 9194 | | |
9195 | 9195 | | |
9196 | 9196 | | |
| 9197 | + | |
| 9198 | + | |
| 9199 | + | |
| 9200 | + | |
9197 | 9201 | | |
9198 | | - | |
9199 | | - | |
9200 | | - | |
9201 | | - | |
9202 | 9202 | | |
9203 | 9203 | | |
9204 | 9204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
0 commit comments