]> granicus.if.org Git - clang/commit
Improve our handling of the current instantiation for qualified
authorDouglas Gregor <dgregor@apple.com>
Fri, 4 Feb 2011 13:35:07 +0000 (13:35 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 4 Feb 2011 13:35:07 +0000 (13:35 +0000)
commit2f9f89c6938a788a904c3be3ae7a64f4297c90a6
tree76a57860a8743d692cdd54eb26b309434a3ca6aa
parent46ff3034d14aaa92b530e96480741f3d5d458cb8
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