HomePhabricator

[Concepts] Check function constraints before deducing auto return type

Authored by saar.raz on Jan 30 2020, 5:37 PM.

Description

[Concepts] Check function constraints before deducing auto return type

A constrained function with an auto return type would have it's definition
instantiated in order to deduce the auto return type before the constraints
are checked.

Move the constraints check after the return type deduction.

(cherry picked from commit 980517b3530ffb7faa1a23fdc007d78f5b45ae3c)

Details

Committed
saar.razJan 30 2020, 5:52 PM
Parents
rG0ce7ea7c6e0e: PR41991: Accept attributes on defaulted and deleted friends.
Branches
Unknown
Tags
Unknown