-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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] Initialization with DATA statement having forward reference errors with implicit none #63783
Comments
@llvm/issue-subscribers-flang-frontend |
Fix coming shortly. Need it today? |
Not required today itself. The OpenRadioss folks are looking forward to add |
Is this their last blocking bug? I have a fix that needs my usual pre-review testing process before I put it up into Phabricator, but I could expedite that if it would help them. |
No, this is not the last blocking item. We have |
…ONE(TYPE) It is not standard conforming under IMPLICIT NONE(TYPE) for a name to appear in a DATA statement prior to its explicit type declaration, but it is benign, supported in other compilers, and attested in real applications. Support it with an optional portability warning. Fixes GitHub LLVM bug #63783.
Fixed by the above commit. |
Initialization with DATA statement having forward reference errors with implicit none. Error and reproducer, provided below.
Error
Reproducer
Note 1: This is used in applications like OpenRadioss. https://github.com/OpenRadioss/OpenRadioss/blob/main/starter/source/model/sets/preread_rbody_set.F#L66
Note 2: Classic Flang, gfortran does not report errors
The text was updated successfully, but these errors were encountered: