When we have a MemberExpr referring to an overloaded static member function,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Nov 2012 07:06:31 +0000 (07:06 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Nov 2012 07:06:31 +0000 (07:06 +0000)
commit4f6a2c4acb5142fda7c5c10f99618cd9de3aff18
treeea546a94e783f3155481d0dfcccc38f4513837ed
parentae1d30047c3bdccb0302d0a9efdb811e17e19228
When we have a MemberExpr referring to an overloaded static member function,
and we resolve it to a specific function based on the type which it's used as,
don't forget to mark it as referenced.

Fixes a regression introduced in r167514.

llvm-svn: 167918
clang/lib/Sema/SemaOverload.cpp
clang/test/SemaTemplate/instantiate-overload-candidates.cpp