[all-commits] [llvm/llvm-project] 499b2a: PR45294: Fix handling of assumed template names lo...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Mar 27 21:13:12 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 499b2a8d63ca9b319ce3aae462029f37ce7d96dd
      https://github.com/llvm/llvm-project/commit/499b2a8d63ca9b319ce3aae462029f37ce7d96dd
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/lib/Parse/Parser.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/Parser/cxx-decl.cpp
    M clang/test/SemaCXX/literal-operators.cpp
    M clang/test/SemaCXX/pseudo-destructors.cpp
    M clang/test/SemaTemplate/nested-name-spec-template.cpp

  Log Message:
  -----------
  PR45294: Fix handling of assumed template names looked up in the lexical
scope.

There are a few contexts in which we assume a name is a template name;
if such a context is one where we should perform an unqualified lookup,
and lookup finds nothing, we would form a dependent template name even
if the name is not dependent. This happens in particular for the lookup
of a pseudo-destructor.

In passing, rename ActOnDependentTemplateName to just ActOnTemplateName
given that we apply it for non-dependent template names too.




More information about the All-commits mailing list