https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119078
Bug ID: 119078
Summary: Abstract bind(c) interface should not be a global
entity
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: tkoenig at gcc dot gnu.org
Target Milestone: ---
module x
abstract interface
subroutine foo() bind(c)
end subroutine foo
end interface
end module x
subroutine foo(a)
real :: a
end subroutine foo
currently yields
abstract.f90:8:1:
3 | subroutine foo() bind(c)
| 2~~~~~~~~~~~~~
......
8 | subroutine foo(a)
| 1~~~~~~~~~~~~~
Warnung: 'foo' has the wrong number of arguments zwischen (1) und (2)
which is wrong - the abstract interface cannot be a global symbol.