]> granicus.if.org Git - clang/commit
Work around a crash when checking access to injected class names
authorJohn McCall <rjmccall@apple.com>
Fri, 13 Aug 2010 07:02:08 +0000 (07:02 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 13 Aug 2010 07:02:08 +0000 (07:02 +0000)
commit8ba6691248004e1a726ba5f29d717950f8054507
treee31ce793062db7039a329f8780ac37d07b671cba
parent7ae2faafd30524ef5f863bb3b8701977888839bb
Work around a crash when checking access to injected class names
qua templates.  The current fix suppresses the access check entirely
in this case;  to do better, we'd need to be able to say that a
particular lookup result came from a particular injected class name,
which is not easy to do with the current representation of LookupResult.
This is on my known-problems list.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111009 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/CXX/class.access/p4.cpp