<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 - [possible regression] Supplying a builtin as a template argument"
href="https://bugs.llvm.org/show_bug.cgi?id=36916">36916</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[possible regression] Supplying a builtin as a template argument
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yuri@tsoft.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=20133" name="attach_20133" title="testcase.cpp">attachment 20133</a> <a href="attachment.cgi?id=20133&action=edit" title="testcase.cpp">[details]</a></span>
testcase.cpp
The attached testcase worked up to and including clang5, but breaks in clang6:
testcase.cpp:18:15: error: no matching function for call to 'v4f_map'
v4f_t x = v4f_map<__builtin_sinf> (w);
^~~~~~~~~~~~~~~~~~~~~~~
x.cpp:6:7: note: candidate template ignored: invalid explicitly-specified
argument for template parameter 'fn'
v4f_t v4f_map (v4f_t x)
^
1 error generated.</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>