[all-commits] [llvm/llvm-project] 1cdc0e: [Clang] Check type-constraints applied to placehol...

cor3ntin via All-commits all-commits at lists.llvm.org
Mon Apr 10 08:33:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1cdc0e83c8ce35702ddbc6b26959a5da44776a49
      https://github.com/llvm/llvm-project/commit/1cdc0e83c8ce35702ddbc6b26959a5da44776a49
  Author: Corentin Jabot <corentinjabot at gmail.com>
  Date:   2023-04-10 (Mon, 10 Apr 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Sema/SemaTemplate.cpp
    M clang/test/Parser/cxx2a-placeholder-type-constraint.cpp

  Log Message:
  -----------
  [Clang] Check type-constraints applied to placeholder types

(and deduced return types)

Previously, only type constraints applied to type parameter
were semantically checked.

A diagnostic would still be emitted on instantiation, but it was
too late, lacked clarity, and was inconsistent with type parameters.

Reviewed By: erichkeane

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




More information about the All-commits mailing list