-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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] Incorrect diagnostic on v_list
in defined I/O
#125878
Labels
Comments
@llvm/issue-subscribers-flang-frontend Author: Daniel Chen (DanielCChen)
Consider the following code
```
module m
type base
real(4), allocatable :: d1
end type
end module
./t.f:12:36: error: Dummy argument 'v_list' of a defined input/output procedure must be deferred shape
|
klausler
added a commit
to klausler/llvm-project
that referenced
this issue
Feb 5, 2025
The check that "v_list" be deferred shape is just wrong; there are no deferred shape non-pointer non-allocatable dummy arguments in Fortran. Correct to check for an assumed shape dummy argument. And de-split the error messages that were split across multiple source lines, making them much harder to find with grep. Fixes llvm#125878.
llvm-sync bot
pushed a commit
to arm/arm-toolchain
that referenced
this issue
Feb 27, 2025
The check that "v_list" be deferred shape is just wrong; there are no deferred shape non-pointer non-allocatable dummy arguments in Fortran. Correct to check for an assumed shape dummy argument. And de-split the error messages that were split across multiple source lines, making them much harder to find with grep. Fixes llvm/llvm-project#125878.
cheezeburglar
pushed a commit
to cheezeburglar/llvm-project
that referenced
this issue
Feb 28, 2025
The check that "v_list" be deferred shape is just wrong; there are no deferred shape non-pointer non-allocatable dummy arguments in Fortran. Correct to check for an assumed shape dummy argument. And de-split the error messages that were split across multiple source lines, making them much harder to find with grep. Fixes llvm#125878.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the following code
Flang currently issues an error as:
v_list
is supposed to be "assumed-shape".All ifort, gfortran and XLF compile the code successfully.
The text was updated successfully, but these errors were encountered: