Created attachment 23870 [details] source code that triggers the problem I'm trying to compile the full Quantum Espresso ( https://www.quantum-espresso.org/) project with flang, but the build fails very early with the command reported. I'm using the last git version of the full llvm-project, that I compiled from source with gcc 8.3.0 and cmake -DCMAKE_INSTALL_PREFIX=/scratch/llvm/ -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;flang;lld;clang-tools-extra;libunwind;compiler-rt;openmp;polly;libclc;klee" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ ../llvm the problem is the following: $ flang iotk_attr_interf.f90 -c fatal internal error: CHECK(length.isExplicit()) failed at scratch/rbertoss/llvm/llvm-project/flang/lib/Semantics/compute-offsets.cpp(357) /scratch/llvm/bin/flang: line 29: 23708 Aborted (core dumped) ${wd}/bin/f18 -module-suffix .f18.mod -intrinsic-module-directory /scratch/llvm/include/flang $* You can find in the attachment a set of source files that reproduce the problem thank you
This is fixed by https://reviews.llvm.org/D86357
(In reply to Tim Keith from comment #1) > This is fixed by https://reviews.llvm.org/D86357 I recompiled with make after pulling from github and I still get the same internal error, with the same fortran source. Should I do something more?
Sorry about that. I've pushed another fix. Please try again.