Commit 1fb926d
committed
[flang] Mangle main program's symbol name to make it distinct from the other symbols
The following code is now accepted:
```
module m
end
program m
use m
end
```
The PROGRAM name doesn't really have an effect on the compilation result,
so it shouldn't result in symbol name conflicts.1 parent 08a8e1c commit 1fb926d
File tree
2 files changed
+33
-3
lines changed- flang
- include/flang/Semantics
- lib/Semantics
2 files changed
+33
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
| 116 | + | |
| 117 | + | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| |||
828 | 835 | | |
829 | 836 | | |
830 | 837 | | |
831 | | - | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
832 | 847 | | |
833 | 848 | | |
834 | 849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
602 | 614 | | |
603 | 615 | | |
604 | 616 | | |
| |||
10273 | 10285 | | |
10274 | 10286 | | |
10275 | 10287 | | |
10276 | | - | |
| 10288 | + | |
| 10289 | + | |
| 10290 | + | |
10277 | 10291 | | |
10278 | | - | |
| 10292 | + | |
10279 | 10293 | | |
| 10294 | + | |
10280 | 10295 | | |
10281 | 10296 | | |
10282 | 10297 | | |
| |||
0 commit comments