<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 --- - Local class + function pointer template argument + noexcept = SEGFAULT"
href="https://llvm.org/bugs/show_bug.cgi?id=28340">28340</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Local class + function pointer template argument + noexcept = SEGFAULT
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>turck11@hotmail.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>Created <span class=""><a href="attachment.cgi?id=16646" name="attach_16646" title="Run script. Couldn't figure out how to add a 2nd attachment, but the preprocessed output is boring/probably not helpful anyway.">attachment 16646</a> <a href="attachment.cgi?id=16646&action=edit" title="Run script. Couldn't figure out how to add a 2nd attachment, but the preprocessed output is boring/probably not helpful anyway.">[details]</a></span>
Run script. Couldn't figure out how to add a 2nd attachment, but the
preprocessed output is boring/probably not helpful anyway.
Minimal repro:
template<typename T>
void isNothrowCallableFunPtr() {
struct NothrowCallableTest {
T fun;
NothrowCallableTest() noexcept(noexcept(fun())) {}
};
}
int main() {
isNothrowCallableFunPtr<void(*)()>();
return 0;
}
See it live on the trunk version of clang here, including the output:
<a href="http://melpon.org/wandbox/permlink/dZw6IKrnMY1VbKM8">http://melpon.org/wandbox/permlink/dZw6IKrnMY1VbKM8</a>
This repros on 3.8, 3.7, 3.6... maybe more. Also on Apple LLVM version 7.3.0
(clang-703.0.31), which is what I attached the preprocessed source and
associated run script from.</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>