<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - After r291388: Assertion failed: (it != OpaqueRValues.end() && "no mapping for opaque value!"), function getOpaqueRValueMapping, file tools/clang/lib/CodeGen/CodeGenFunction.h, line 2008."
href="https://llvm.org/bugs/show_bug.cgi?id=31692">31692</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>After r291388: Assertion failed: (it != OpaqueRValues.end() && "no mapping for opaque value!"), function getOpaqueRValueMapping, file tools/clang/lib/CodeGen/CodeGenFunction.h, line 2008.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>After r291388 (<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [C++11/14] Body of constexpr function templates instantiated too eagerly in unevaluated operands"
href="show_bug.cgi?id=23135">bug 23135</a>: Don't instantiate constexpr functions referenced in
unevaluated operands where possible), bootstrapping clang with clang itself
results in an assertion while compiling lib/MC/MCParser/AsmParser.cpp:
Assertion failed: (it != OpaqueRValues.end() && "no mapping for opaque
value!"), function getOpaqueRValueMapping, file
tools/clang/lib/CodeGen/CodeGenFunction.h, line 2008.
Abort trap
Minimized test case:
========================================================================
// clang -cc1 -triple x86_64 -S -std=c++11 testcase.cpp
template <bool> struct x0;
template <int> struct x1 { static int x2; };
template <class x3> struct x4 : x1<__is_constructible(x3)> {};
template <bool> struct x5;
template <class... x3> struct x6 {
template <bool x7, typename x0<x5<x7 && x4<x3>::x2...>::x2>::x8> x6();
};
template <typename x9> struct x10 : x9 {};
struct x11 {
struct x12 {
int x13 = 0;
} x14;
x10<x6<x12>> x15;
void x16();
};
void x11::x16() {
if (x14.x13)
;
}
========================================================================
Bisection shows this assertion to have been introduced by r291388.</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>