Closed ohno-fj closed 11 months ago
@llvm/issue-subscribers-flang-frontend
Author: None (ohno-fj)
This issue isn't reproduced now because HLFIR is enabled by default.
$ flang-new -v gc_e157_2.f90
flang-new version 18.0.0 (https://github.com/llvm/llvm-project.git ba89749cd24950c9c51f4cc64277ce0421d86d20)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /path/to/install/bin
Found candidate GCC installation: /opt/rh/gcc-toolset-12/root/usr/lib/gcc/aarch64-redhat-linux/12
Selected GCC installation: /opt/rh/gcc-toolset-12/root/usr/lib/gcc/aarch64-redhat-linux/12
:
$
A compilation error occurs if
subroutine
with the same name is declared ininterface
andsubroutine
statements but their argument types are not the same.When I specify
-flang-experimental-hlfir
at the compilation, I can avoid the compilation error.The following are the test program, Flang-new, Gfortran and ifort compilation result.
gc_e157_2.f90: