[all-commits] [llvm/llvm-project] f8a37a: [Clang] Fix compat diagnostic to detect a nontype ...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Sun Sep 18 12:12:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f8a37a6ce67470f9f6b3a4dacb65c637c2958b8d
      https://github.com/llvm/llvm-project/commit/f8a37a6ce67470f9f6b3a4dacb65c637c2958b8d
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2022-09-18 (Sun, 18 Sep 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/Sema/SemaTemplate.cpp
    A clang/test/SemaTemplate/gh57362.cpp
    A clang/test/SemaTemplate/temp_arg_nontype_diagnostic_cxx17.cpp

  Log Message:
  -----------
  [Clang] Fix compat diagnostic to detect a nontype template parameter has a placeholder type using getContainedAutoType()

Based on the changes introduced by 15361a21e01026e74cb17011b702c7d1c881ae94 it
looks like C++17 compatibility diagnostic should have been checking
getContainedAutoType().

This fixes: https://github.com/llvm/llvm-project/issues/57369
  https://github.com/llvm/llvm-project/issues/57643
  https://github.com/llvm/llvm-project/issues/57793

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




More information about the All-commits mailing list