Fix ICE on class template argument deduction with inherited ctor.
authorJason Merrill <jason@redhat.com>
Sat, 20 Jul 2019 14:43:49 +0000 (10:43 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 20 Jul 2019 14:43:49 +0000 (10:43 -0400)
commit2dc1070584c5d700ab878fa13a18e2e25f0380c8
treede3478d6add3f50cb727ad27e7ed04056bee0786
parent1ab1f3502038323f6f5cd8c16c0ac1b1416e3545
Fix ICE on class template argument deduction with inherited ctor.

In general, when we see a dependent using-declaration we don't know whether
it names a function or not, so it doesn't get an OVERLOAD unless we see
overloads of the same name in the current class.  In the case of an
inherited constructor we could figure that out from the name, but it's
simpler to handle USING_DECL properly.

* cp-tree.h (ovl_iterator::using_p): A USING_DECL by itself was also
introduced by a using-declaration.

From-SVN: r273623
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/testsuite/g++.dg/cpp1z/class-deduction67.C [new file with mode: 0644]