PR c++/79464 - ICE in IPA with omitted constructor parms
authorJason Merrill <jason@redhat.com>
Wed, 15 Feb 2017 20:29:08 +0000 (15:29 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 15 Feb 2017 20:29:08 +0000 (15:29 -0500)
commit19e8a45feb6c8cda4bc324e8bd6434ca46033b7c
tree753e105ddd16894c23f726f7d2c1b39362e4d4df
parent945c17d8c1fd5e2299fb17becac9b35ec45db3e6
PR c++/79464 - ICE in IPA with omitted constructor parms

* class.c (build_clone): Also omit parms from TYPE_ARG_TYPES.
(adjust_clone_args): Adjust.
(add_method): Remember omitted parms.
* call.c (add_function_candidate): Likewise.
* mangle.c (write_method_parms): Likewise.
* method.c (ctor_omit_inherited_parms): Return false if there are no
parms to omit.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r245495
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/mangle.c
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp1z/inh-ctor23.C