[Bug c++/79503] [7 Regression] [new inheriting ctors] spurious bad candidate from same or derived type

2017-02-19 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79503

Jason Merrill  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED
   Target Milestone|--- |7.0

--- Comment #3 from Jason Merrill  ---
Fixed.

[Bug c++/79503] [7 Regression] [new inheriting ctors] spurious bad candidate from same or derived type

2017-02-19 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79503

--- Comment #2 from Jason Merrill  ---
Author: jason
Date: Mon Feb 20 06:03:45 2017
New Revision: 245586

URL: https://gcc.gnu.org/viewcvs?rev=245586=gcc=rev
Log:
PR c++/79503 - inherited ctor taking base class

* call.c (add_function_candidate): Also check that
DECL_INHERITED_CTOR_BASE is reference-related to the parameter type.

Added:
trunk/gcc/testsuite/g++.dg/cpp0x/inh-ctor26.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c

[Bug c++/79503] [7 Regression] [new inheriting ctors] spurious bad candidate from same or derived type

2017-02-19 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79503

Jason Merrill  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 CC||jason at gcc dot gnu.org
   Assignee|unassigned at gcc dot gnu.org  |jason at gcc dot gnu.org

[Bug c++/79503] [7 Regression] [new inheriting ctors] spurious bad candidate from same or derived type

2017-02-16 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79503

Martin Sebor  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
  Known to work||6.3.0
   Keywords||rejects-valid
   Last reconfirmed||2017-02-17
 CC||msebor at gcc dot gnu.org
 Ever confirmed|0   |1
Summary|[new inheriting ctors]  |[7 Regression] [new
   |spurious bad candidate from |inheriting ctors] spurious
   |same or derived type|bad candidate from same or
   ||derived type
  Known to fail||7.0

--- Comment #1 from Martin Sebor  ---
Confirmed.  Bisection points to r243178 (gcc 7.0.0):

r243178 | jason | 2016-12-02 08:58:32 -0500 (Fri, 02 Dec 2016) | 2 lines

* call.c (add_function_candidate): Also exclude inherited ctors
that take a type reference-related to the derived class.