Improve recovery when we see a dependent template name that is missing
the required "template" keyword, using the same heuristics we do for
dependent template names in member access expressions, e.g.,

test/SemaTemplate/dependent-template-recover.cpp:11:8: error: use 'template'
      keyword to treat 'getAs' as a dependent template name
    T::getAs<U>();
       ^
       template 

Fixes PR5404.

llvm-svn: 104409
6 files changed
tree: 8dbe947280a848c69a762ab51387ceb3c59e0b76
  1. clang/
  2. compiler-rt/
  3. libcxx/
  4. llvm/