<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 - [OpenCL C++] Template parameters are broken due to address space changes"
href="https://bugs.llvm.org/show_bug.cgi?id=38603">38603</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[OpenCL C++] Template parameters are broken due to address space changes
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>OpenCL
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>erich.keane@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>I haven't been able to run this down, but when parsing a scoped declarator, the
lookup for types don't work:
<a href="https://godbolt.org/g/b3JpJb">https://godbolt.org/g/b3JpJb</a>
template <typename _Tp>
struct integral_constant{
void foo();
};
template<typename _Tp>
void integral_constant<_Tp>::foo() {}
<source>:7:30: error: nested name specifier 'integral_constant<_Tp>::' for
declaration does not refer into a class, class template or class template
partial specialization
void integral_constant<_Tp>::foo() {}
The address-space changes are somehow messing with canonicalization of the
template parameter itself, thus the lookup for integral_constant<_Tp> doesn't
work 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>