<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 --- - Assertion failed: !T->isDependentType()"
href="https://llvm.org/bugs/show_bug.cgi?id=24587">24587</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failed: !T->isDependentType()
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>C++14
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ldionne.2@gmail.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>The following code triggers an assertion on Clang trunk:
------------------------------------------------------------------------------
template <typename T, T v>
struct integral_constant { };
auto false_ = integral_constant<bool, false>{};
template <typename T>
void f(T, decltype(false_));
int main() {
f(1, integral_constant<bool, true>{});
}
------------------------------------------------------------------------------
The command line and output is
------------------------------------------------------------------------------
<span class="quote">> clang++-3.6 -std=c++14 -fsyntax-only test/worksheet.cpp</span >
test/worksheet.cpp:1458:5: error: no matching function for call to 'f'
f(1, integral_constant<bool, true>{});
^
Assertion failed: (!T->isDependentType() &&
"should not see dependent types here"),
function getTypeInfoImpl,
file [snip]/llvm-3.6.2.src/tools/clang/include/clang/AST/TypeNodes.def,
line 98.
[stack trace normally follows]
------------------------------------------------------------------------------
Live example: <a href="http://melpon.org/wandbox/permlink/jzuGDAAI2pwXqisP">http://melpon.org/wandbox/permlink/jzuGDAAI2pwXqisP</a></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>