<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 - getAccess on template instanced CXXRecords are incorrect"
href="https://bugs.llvm.org/show_bug.cgi?id=42658">42658</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>getAccess on template instanced CXXRecords are incorrect
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</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>release blocker
</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>lolo9909@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Test code:
class TEST
{
template<typename T>
struct PRIVATE_TEMPLATE
{
T t;
void PRIVATE_METHOD() {}
};
PRIVATE_TEMPLATE<int> PRIVATE_VAR;
};
Using getAccess() on PRIVATE_TEMPLATE<int> as CXXRecord decl will return
AS_none. Even getTemplateInstantiationPattern() and getting that access returns
AS_none.
This was tested from Windows, compiled using clang-cl.
Revision "c470ac50a8a45aa62ba50d435ff3048c6c274273" from llvm-project repo:
<a href="https://github.com/llvm/llvm-project">https://github.com/llvm/llvm-project</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>