]> granicus.if.org Git - clang/commit
Use the naming class from the overloaded lookup when access-checking an
authorJohn McCall <rjmccall@apple.com>
Thu, 22 Apr 2010 18:44:12 +0000 (18:44 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 22 Apr 2010 18:44:12 +0000 (18:44 +0000)
commite9ee23edd17c4bb7f271e67f8790792b4de677fc
tree4588b8e20cf8033c3ba36ddd453cc3b2f0a308d6
parentfe1ea7b3e4552a612a1b0a11734598651e5ddfdf
Use the naming class from the overloaded lookup when access-checking an
address of overloaded function, instead of assuming that a nested name
specifier was used.  A nested name specifier is not required for static
functions.

Fixes PR6886.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102107 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
lib/AST/ExprCXX.cpp
lib/Sema/SemaAccess.cpp
test/SemaCXX/addr-of-overloaded-function.cpp