[all-commits] [llvm/llvm-project] ef1bb1: [clang][Parse] Fix crash when emitting template di...

Timm Bäder via All-commits all-commits at lists.llvm.org
Tue Aug 30 06:12:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef1bb11a34de2822514878b99b442575a022a658
      https://github.com/llvm/llvm-project/commit/ef1bb11a34de2822514878b99b442575a022a658
  Author: Timm Bäder <tbaeder at redhat.com>
  Date:   2022-08-30 (Tue, 30 Aug 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticParseKinds.td
    M clang/test/Parser/cxx-concept-declaration.cpp

  Log Message:
  -----------
  [clang][Parse] Fix crash when emitting template diagnostic

This was passing a 6 to the diagnostic engine, which the diagnostic
message didn't handle.

Add the new value to the diagnosic message, remove an unused value and
add a test.

This fixes https://github.com/llvm/llvm-project/issues/57415

Differential Revision: https://reviews.llvm.org/D132821




More information about the All-commits mailing list