This is an archive of the discontinued LLVM Phabricator instance.

[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
were semantically checked.

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

Diff Detail

Event Timeline

cor3ntin created this revision.Apr 10 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 3:00 AM
cor3ntin requested review of this revision.Apr 10 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2023, 3:00 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
erichkeane accepted this revision.Apr 10 2023, 6:01 AM

This looks fine to me!

This 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
This revision was automatically updated to reflect the committed changes.