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.

Details

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