-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Flang] Missing diagnose on multiple proc-decl when Binding NAME= is present #82528
Comments
@llvm/issue-subscribers-bug Author: Daniel Chen (DanielCChen)
Consider the following code:
```
interface
subroutine foo() BIND(C)
end subroutine
end interface
procedure(foo), BIND(C, NAME='myfptr') :: p1, p2, p3
C1520 (R1512) If proc-language-binding-spec with NAME= is specified, then proc-decl-list shall contain exactly
|
@llvm/issue-subscribers-flang-frontend Author: Daniel Chen (DanielCChen)
Consider the following code:
```
interface
subroutine foo() BIND(C)
end subroutine
end interface
procedure(foo), BIND(C, NAME='myfptr') :: p1, p2, p3
C1520 (R1512) If proc-language-binding-spec with NAME= is specified, then proc-decl-list shall contain exactly
|
When a procedure declaration statement has a binding label, it must declare no more than one procedure. Fixes llvm#82528.
When a procedure declaration statement has a binding label, it must declare no more than one procedure. Fixes #82528.
Consider the following code:
Flang currently compiles it successfully, but it violates the following constraint
The text was updated successfully, but these errors were encountered: