Issue 128757
Summary [Flang] Missing diagnostic on mixed function and subroutine with the same generic name.
Labels flang:frontend
Assignees
Reporter DanielCChen
    Consider the following code:
```
module m
  type dt
  contains
    procedure :: foo
    procedure :: bar
    generic :: gen => foo, bar  ! Error: foo is function, but bar is a sub
  end type
contains
  integer function foo(a)
 class(dt) a
    foo = 3
  end function

  subroutine bar(a)
 class(dt) a
  end subroutine
end module
```

`foo` and `bar` shall not be mixed into the same generic name `gen`.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to