-
Notifications
You must be signed in to change notification settings - Fork 134
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
Implied do
and array constructor: a bug of flang
and related compilers
#1200
Comments
Implied do
and array constructor: strange behavior of flang
and related compilersImplied do
and array constructor: a bug of flang
and related compilers
Thank @kiranchandramohan , @bryanpkc , @shivaramaarao , and @mleair for taking care of this issue. I look forward to seeing it fixed. |
We have a fix in the works. |
Thank you, @bryanpkc ! I am very happy to hear about that, and look forward to the fix. |
I've submitted a PR #1212 to fix this issue, please help to review it, thanks~ |
Thank you @zhaochuanfeng so much for working on this issue. I much appreciate the efforts of the community and look forward to seeing the bug finally fixed. |
Could you check whether this is fixed by #1212 or top of trunk? If fixed please close this and 1227. |
Hello @kiranchandramohan ! Thank you and others for the huge efforts! I made a more detailed reply in #1227. |
(The code reflecting the issue is available at GitHub. The issue has been confirmed to be a bug and has been reported to Huawei, NVIDIA, and AMD. See also discussions at Fortran Discourse)
Below is a piece of code involving
implied do
andarray constructor
. Gfortran, Intel ifort and ifx, NAG nagfor, Absoft af95, and Oracle sunf95 can all handle it, but the Classic flang 7.1.0 on Ubuntu 20.04, flang in Bisheng Compiler 1.3.3.b023 on Ubuntu 18.04, flang in AOCC 3.2 on Ubuntu20.04, and NVIDIA nvfortran 21.11 on Ubuntu 20.04 encounter errors, which will be detailed in the sequel.The flang-based compilers encounter the following errors.
1. Classic flang
When invoked without any option:
When invoked with
-Mbounds
:2. Bisheng flang
When invoked without any option:
When invoked with
-Mbounds
3. AOCC flang
When invoked without any option:
When invoked with
-Mbounds
4. NVIDIA nvfortran
When invoked without any options
When invoked with
-Mbounds
:The text was updated successfully, but these errors were encountered: