[all-commits] [llvm/llvm-project] f1fed1: [Clang] Fix crash when ill-formed code is treated ...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Mon Oct 2 08:08:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1fed124524151b73fbf153e946840730986ca6c
      https://github.com/llvm/llvm-project/commit/f1fed124524151b73fbf153e946840730986ca6c
  Author: Shafik Yaghmour <shafik at users.noreply.github.com>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    A clang/test/SemaCXX/gh65522.cpp

  Log Message:
  -----------
  [Clang] Fix crash when ill-formed code is treated as a deduction guide (#67373)

In some cases where ill-formed code could be interpreted as a deduction
guide we can crash because we reach an unreachable path. This fixes this
issue by introducing a diagnostic instead.

Fixes: https://github.com/llvm/llvm-project/issues/65522




More information about the All-commits mailing list