Commit 1eb6e57
committed
[flang] Correct defined assignment case
When a generic ASSIGNMENT(=) has elemental and non-elemental
specific procedures that match the actual arguments, the
non-elemental procedure must take precedence. We get this
right for generics defined with interface blocks, but the
type-bound case fails if the non-elemental specific takes a
non-default PASS argument.
Fixes #141807.1 parent f20423f commit 1eb6e57
File tree
2 files changed
+54
-12
lines changed- flang
- lib/Semantics
- test/Semantics
2 files changed
+54
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2907 | 2907 | | |
2908 | 2908 | | |
2909 | 2909 | | |
2910 | | - | |
| 2910 | + | |
2911 | 2911 | | |
2912 | 2912 | | |
2913 | 2913 | | |
| |||
4824 | 4824 | | |
4825 | 4825 | | |
4826 | 4826 | | |
| 4827 | + | |
4827 | 4828 | | |
4828 | 4829 | | |
4829 | 4830 | | |
4830 | 4831 | | |
4831 | | - | |
4832 | | - | |
4833 | 4832 | | |
4834 | 4833 | | |
4835 | 4834 | | |
4836 | 4835 | | |
4837 | 4836 | | |
4838 | 4837 | | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
4839 | 4841 | | |
4840 | | - | |
| 4842 | + | |
| 4843 | + | |
4841 | 4844 | | |
4842 | 4845 | | |
4843 | 4846 | | |
4844 | | - | |
4845 | | - | |
4846 | | - | |
4847 | | - | |
4848 | | - | |
4849 | | - | |
4850 | | - | |
4851 | | - | |
| 4847 | + | |
| 4848 | + | |
| 4849 | + | |
| 4850 | + | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
| 4854 | + | |
| 4855 | + | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
| 4861 | + | |
4852 | 4862 | | |
4853 | 4863 | | |
4854 | 4864 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments