Improve our handling of the current instantiation for qualified
commit5fe2338aa8d873c78bbeb25344aa020a431c3fca
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 4 Feb 2011 13:35:07 +0000 (4 13:35 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Fri, 4 Feb 2011 13:35:07 +0000 (4 13:35 +0000)
tree76a57860a8743d692cdd54eb26b309434a3ca6aa
parent8d52db9f65825549fb80f87f9ecbb042caa5757e
Improve our handling of the current instantiation for qualified
id-expression, e.g.,

  CurrentClass<T>::member

Previously, if CurrentClass<T> was dependent and not complete, we
would treat it as a dependent-scoped declaration reference expression,
even if CurrentClass<T> referred to the current instantiation.

Fixes PR8966 and improves type checking of templates.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/SemaTemplate/dependent-names.cpp