[PATCH] D40284: [Sema] Improve diagnostics for template arg deduction

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 14 03:19:31 PST 2017


rsmith added a comment.

I would prefer that we make the more-invasive fix, and make each error case within template argument deduction set all the deduction failure information. (Consider factoring out the error setup into helper functions too.) The current approach is a maintenance problem in addition to creating incorrect diagnostics, as it makes it very hard to see what parameters are actually intended to be provided with each of the different forms of deduction failure.


https://reviews.llvm.org/D40284





More information about the cfe-commits mailing list