<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 - is_invokable_v<void> does not compile"
href="https://bugs.llvm.org/show_bug.cgi?id=40495">40495</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>is_invokable_v<void> does not compile
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alisdairm@me.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>The simple test expression:
static_assert(!std::is_invokable_v<void>);
is expected to compile, but libc++ rejects this as 'void' is not a complete
type.
According to the standard, the requirements on "Fn" are:
"Fn and all types in the template parameter pack ArgTypes shall be complete
types, cv void, or arrays of unknown bound."
This may be boiler-plate standardese for handling incomplete types that merits
an LWG issue instead, but note that gcc handles this case correctly.</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>