[all-commits] [llvm/llvm-project] caf30e: [c++20] For P0732R2: Give class NTTPs the proper t...

Richard Smith via All-commits all-commits at lists.llvm.org
Wed Oct 21 14:16:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: caf30e7f03566f20c45e5d0895e71c4bff9056ef
      https://github.com/llvm/llvm-project/commit/caf30e7f03566f20c45e5d0895e71c4bff9056ef
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-10-21 (Wed, 21 Oct 2020)

  Changed paths:
    M clang/include/clang/AST/ExprCXX.h
    M clang/lib/AST/ASTImporter.cpp
    M clang/lib/AST/ExprCXX.cpp
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/Serialization/ASTReaderStmt.cpp
    M clang/lib/Serialization/ASTWriterStmt.cpp
    A clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.decltype/p1.cpp

  Log Message:
  -----------
  [c++20] For P0732R2: Give class NTTPs the proper type when examined with 'decltype'.

This requires that we track enough information to determine the original
type of the parameter in a substituted non-type template parameter, to
distinguish the reference-to-class case from the class case.




More information about the All-commits mailing list