Open Try2Code opened 1 year ago
I tried your code and this seems to work now, with the define directive both set and unset. I tested with a recent build from the main Github branch:
$ flang-new --version
flang-new version 20.0.0git (https://github.com/llvm/llvm-project.git a9006bffa994d5afe9ad0b661b69d655658ab5e8)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/llvm/llvm-project/install/bin
@llvm/issue-subscribers-flang-ir
Author: Brian Spilner (Try2Code)
That commit is back in october 2023. Flang is moving fast and lots of bugs and been fixed since then. As @hakostra mentioned, you should try with a newer version of flang.
The following program:
can be compiled using
but fails with
Compiler version:
Full compilation works with gfortran-11.2, aocc-4.1, nag-7.1
Can some provide hint how to work around this? thx in advance