[PATCH] D43357: [Concepts] Function trailing requires clauses
Richard Smith - zygoloid via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 7 19:50:21 PST 2020
rsmith added inline comments.
================
Comment at: clang/lib/Sema/SemaTemplateDeduction.cpp:3440-3447
+ // C++2a [temp.deduct]p5
+ // [...] When all template arguments have been deduced [...] all uses of
+ // template parameters [...] are replaced with the corresponding deduced
+ // or default argument values.
+ // [...] If the function template has associated constraints
+ // ([temp.constr.decl]), those constraints are checked for satisfaction
+ // ([temp.constr.constr]). If the constraints are not satisfied, type
----------------
rsmith wrote:
> Huh. Doing this down here does indeed seem to be correct, but that seems like a rather bad rule...
This is going to get moved back up to where we had it before by CWG issue 2369 =)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D43357/new/
https://reviews.llvm.org/D43357
More information about the cfe-commits
mailing list