[llvm-bugs] [Bug 47265] New: fatal internal error: CHECK(length.isExplicit()) failed at llvm-project/flang/lib/Semantics/compute-offsets.cpp(357)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 21 01:01:31 PDT 2020


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: unassignedbugs at nondot.org
          Reporter: riccardo.bertossa at gmail.com
                CC: David.Truby at arm.com, jperier at nvidia.com,
                    kirankumartp at gmail.com, llvm-bugs at lists.llvm.org,
                    sscalpone at nvidia.com

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200821/b1db2c29/attachment.html>


More information about the llvm-bugs mailing list