SuccessChanges

Summary

  1. [c++20] For P1907R1: Add checking for structural types for non-type (details)
Commit 0cd73dbe2c0d169ec2cdd9a8264f4ee1695b53b7 by richard
[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.
The file was modifiedclang/include/clang/AST/DeclCXX.h (diff)
The file was modifiedclang/include/clang/Sema/Sema.h (diff)
The file was modifiedclang/test/SemaCXX/invalid-template-params.cpp (diff)
The file was addedclang/test/SemaTemplate/temp_arg_nontype_cxx20.cpp
The file was modifiedclang/lib/AST/Type.cpp (diff)
The file was modifiedclang/lib/Sema/SemaTemplate.cpp (diff)
The file was modifiedclang/lib/AST/DeclCXX.cpp (diff)
The file was modifiedclang/include/clang/AST/Type.h (diff)
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td (diff)
The file was modifiedclang/test/CXX/temp/temp.param/p7.cpp (diff)
The file was modifiedclang/include/clang/AST/CXXRecordDeclDefinitionBits.def (diff)
The file was modifiedclang/test/CodeGenCXX/debug-info-template.cpp (diff)