Commit e5b3189
committed
[flang] INT2 & INT8 can't be specific intrinsic functions
I recently added support for the extension intrinsic functions INT2
and INT8, and took the shortcut of defining them as specific
intrinsic functions that map to the standard INT() with hard-wired
KIND= values for the result. This works fine for references to
these functions, but leads to a compiler crash for an attempt to
use their names in contexts other than calling them, since their
argument types aren't restricted to single types and no concrete
interface can be characterized for them. So move them out of the
table of specific intrinsic functions and into the general table
of intrinsics, and then handle them afterwards as if they had
been INT().
Fixes #115324.1 parent 5d8be4c commit e5b3189
File tree
3 files changed
+9
-9
lines changed- flang
- lib/Evaluate
- test/Evaluate
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
| 876 | + | |
877 | 877 | | |
878 | 878 | | |
879 | 879 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
575 | 579 | | |
576 | 580 | | |
577 | 581 | | |
| |||
1176 | 1180 | | |
1177 | 1181 | | |
1178 | 1182 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | 1183 | | |
1186 | 1184 | | |
1187 | 1185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
0 commit comments