[llvm-bugs] [Bug 42658] New: getAccess on template instanced CXXRecords are incorrect
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 17 15:37:22 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42658
Bug ID: 42658
Summary: getAccess on template instanced CXXRecords are
incorrect
Product: clang
Version: 8.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: lolo9909 at hotmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
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:
https://github.com/llvm/llvm-project
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190717/b514b997/attachment.html>
More information about the llvm-bugs
mailing list