Issue |
131914
|
Summary |
[flang] Missing diagnostic on ambiguous generic type-bound procedure - a different case
|
Labels |
flang:frontend
|
Assignees |
|
Reporter |
DanielCChen
|
Consider the following case:
```
module genericName
type b1
integer :: i
contains
procedure, nopass :: threeargs1
generic :: threeargs => threeargs1
end type
type, extends(b1) :: c1
contains
procedure, nopass :: threeargs2
generic :: threeargs => threeargs2
end type
contains
subroutine threeargs1(x,y,z)
real, optional, intent(in) :: x
integer, intent(in) :: y
real, intent(out) :: z
end subroutine
subroutine threeargs2(x,z,y)
integer, optional, intent(in) :: x
integer, intent(in) :: z
real, intent(out) :: y
end subroutine
end module
```
Generic procedure `threeargs1` and `threddargs2` are ambiguous.
All ifort, gfortran and XLF issue an error message.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs