Issue 128744
Summary [Flang] Missing diagnostic on abstract interface name being the same as the keyword of an intrinsic type
Labels flang:frontend
Assignees
Reporter DanielCChen
    Consider the following code.
```
abstract interface
 function integer()  ! Error: intrinsic name is illegal here
 end function
end interface
end
```

The standard has:
```
C1503 (R1503) If the interface-stmt is ABSTRACT INTERFACE, then the function-name in the function-stmt
or the subroutine-name in the subroutine-stmt shall not be the same as a keyword that specifies an
intrinsic type.
```

The above code should be diagnosed.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to