[all-commits] [llvm/llvm-project] 45e75d: Update the message for template-template param key...

Erich Keane via All-commits all-commits at lists.llvm.org
Tue Sep 28 06:02:41 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45e75d93821f7e4f04d9f42cb19f729b346e7c0c
      https://github.com/llvm/llvm-project/commit/45e75d93821f7e4f04d9f42cb19f729b346e7c0c
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/lib/Parse/ParseTemplate.cpp
    M clang/test/Parser/cxx-template-decl.cpp
    M clang/test/Parser/cxx2a-concept-declaration.cpp

  Log Message:
  -----------
  Update the message for template-template param keyword for C++17

C++17 permits using 'typename' or 'class' for a template template
parameter, but the error message in the parser only refers to 'class'.
This patch, in C++17 or newer modes, adds "or 'template'" to the
diagnostic.




More information about the All-commits mailing list