(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.
Paths
| Differential D147925
[Clang] Check type-constraints applied to placeholder types ClosedPublic Authored by cor3ntin on Apr 10 2023, 3:00 AM.
Details Summary (and deduced return types) Previously, only type constraints applied to type parameter A diagnostic would still be emitted on instantiation, but it was
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Apr 10 2023, 6:01 AM This revision was landed with ongoing or failed builds.Apr 10 2023, 8:33 AM Closed by commit rG1cdc0e83c8ce: [Clang] Check type-constraints applied to placeholder types (authored by cor3ntin). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 512103 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
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||