https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90171
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> --- Author: jason Date: Sat Apr 20 06:18:30 2019 New Revision: 270467 URL: https://gcc.gnu.org/viewcvs?rev=270467&root=gcc&view=rev Log: PR c++/90171 - ICE with destroying delete with size_t parm. The problem here was that "second parm is size_t" is false for a destroying sized delete. So let's introduce sized_deallocation_fn_p when that's what we're asking, and reserve second_parm_is_size_t for the specific case of warning about possible confusion with placement delete. * call.c (sized_deallocation_fn_p): New. Use it instead of second_parm_is_size_t in most cases. (second_parm_is_size_t): Don't check for aligned. Added: trunk/gcc/testsuite/g++.dg/cpp2a/destroying-delete4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c