<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - fatal internal error: CHECK(length.isExplicit()) failed at llvm-project/flang/lib/Semantics/compute-offsets.cpp(357)"
href="https://bugs.llvm.org/show_bug.cgi?id=47265">47265</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>fatal internal error: CHECK(length.isExplicit()) failed at llvm-project/flang/lib/Semantics/compute-offsets.cpp(357)
</td>
</tr>
<tr>
<th>Product</th>
<td>flang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>riccardo.bertossa@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>David.Truby@arm.com, jperier@nvidia.com, kirankumartp@gmail.com, llvm-bugs@lists.llvm.org, sscalpone@nvidia.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=23870" name="attach_23870" title="source code that triggers the problem">attachment 23870</a> <a href="attachment.cgi?id=23870&action=edit" title="source code that triggers the problem">[details]</a></span>
source code that triggers the problem
I'm trying to compile the full Quantum Espresso (
<a href="https://www.quantum-espresso.org/">https://www.quantum-espresso.org/</a>) 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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>