https://bugs.llvm.org/show_bug.cgi?id=47265

            Bug ID: 47265
           Summary: fatal internal error: CHECK(length.isExplicit())
                    failed at
                    llvm-project/flang/lib/Semantics/compute-offsets.cpp(3
                    57)
           Product: flang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

Created attachment 23870
  --> https://bugs.llvm.org/attachment.cgi?id=23870&action=edit
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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to