Improve deduction failure diagnostics.
authorJason Merrill <jason@redhat.com>
Sat, 31 Oct 2015 16:19:50 +0000 (12:19 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 31 Oct 2015 16:19:50 +0000 (12:19 -0400)
commit09833a1db1a6a24968cf4575a2a26a8823e3f3ca
tree7f600eb0fd5a0762ee42e25fac806f0005647212
parent79d9b2dea234d3e7c3fbc13ab1d0160ef08e9f59
Improve deduction failure diagnostics.

* pt.c (unify): Don't diagnose no common base if we already have
the same template.
(do_auto_deduction): Explain deduction failure.

From-SVN: r229627
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.old-deja/g++.pt/explicit77.C