r273623 - in /trunk/gcc: cp/ChangeLog cp/cp-tre...
jason@gcc.gnu.org
jason@gcc.gnu.org
Sat Jul 20 14:43:00 GMT 2019
Author: jason
Date: Sat Jul 20 14:43:49 2019
New Revision: 273623
URL: https://gcc.gnu.org/viewcvs?rev=273623&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
More information about the Gcc-cvs
mailing list