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: unassignedclangb...@nondot.org
          Reporter: lolo9...@hotmail.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to