Commit 0e8d40e
committed
[flang] Fixed regression with CDEFINED linkage
#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.1 parent 1fbfac3 commit 0e8d40e
File tree
3 files changed
+7
-5
lines changed- flang
- lib/Semantics
- test
- Lower
- Semantics
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9194 | 9194 | | |
9195 | 9195 | | |
9196 | 9196 | | |
| 9197 | + | |
| 9198 | + | |
| 9199 | + | |
| 9200 | + | |
| 9201 | + | |
9197 | 9202 | | |
9198 | | - | |
9199 | | - | |
9200 | | - | |
9201 | | - | |
9202 | 9203 | | |
9203 | 9204 | | |
9204 | 9205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
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