https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88122
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue Jan 8 09:55:26 2019 New Revision: 267685 URL: https://gcc.gnu.org/viewcvs?rev=267685&root=gcc&view=rev Log: Backported from mainline 2018-11-21 Jakub Jelinek <ja...@redhat.com> PR c++/88122 * method.c (maybe_explain_implicit_delete): If FUNCTION_FIRST_USER_PARMTYPE (decl) is NULL, set const_p to false instead of ICEing. * g++.dg/cpp0x/implicit15.C: New test. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/implicit15.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/method.c branches/gcc-8-branch/gcc/testsuite/ChangeLog