[PATCH] D147925: [Clang] Check type-constraints applied to placeholder types

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 10 03:00:04 PDT 2023


cor3ntin created this revision.
Herald added a project: All.
cor3ntin requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

(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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147925

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147925.512103.patch
Type: text/x-patch
Size: 5719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230410/92173512/attachment.bin>


More information about the cfe-commits mailing list