[all-commits] [llvm/llvm-project] 0cd73d: [c++20] For P1907R1: Add checking for structural t...

Richard Smith via All-commits all-commits at lists.llvm.org
Sun Sep 20 20:21:15 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0cd73dbe2c0d169ec2cdd9a8264f4ee1695b53b7
      https://github.com/llvm/llvm-project/commit/0cd73dbe2c0d169ec2cdd9a8264f4ee1695b53b7
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-09-20 (Sun, 20 Sep 2020)

  Changed paths:
    M clang/include/clang/AST/CXXRecordDeclDefinitionBits.def
    M clang/include/clang/AST/DeclCXX.h
    M clang/include/clang/AST/Type.h
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Sema/Sema.h
    M clang/lib/AST/DeclCXX.cpp
    M clang/lib/AST/Type.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/CXX/temp/temp.param/p7.cpp
    M clang/test/CodeGenCXX/debug-info-template.cpp
    M clang/test/SemaCXX/invalid-template-params.cpp
    A clang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp

  Log Message:
  -----------
  [c++20] For P1907R1: Add checking for structural types for non-type
template parameters.

No support for the new kinds of non-type template argument yet.

This is not entirely NFC for prior language modes: we have historically
incorrectly accepted rvalue references as the types of non-type template
parameters. Such invalid code is now rejected.




More information about the All-commits mailing list