From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by sourceware.org (Postfix) with ESMTPS id 06032385DC03 for ; Thu, 9 Apr 2020 08:13:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 06032385DC03 Received: by mail-io1-xd42.google.com with SMTP id i19so2941026ioh.12 for ; Thu, 09 Apr 2020 01:13:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aRru3mDIhyFe43lSgrnmjz/79N1OX+amtlJ6OYGt514=; b=PZVj8h+5UKFGMgfUQvWBFiuCuUO5xfHD2jrf0PcBCFLNBo6LLqwXZadlADFRs2N80l z86rfjYp0KZJBbs7Yo5xCzpkWIGt4qxSHCFfscgFOlaXUUtFar3tqWYr3WeEg4wTdkq9 bwDDJfj/r/L1AQVFSC6XUQIAOW5qrf+leKOrhiqCzkXvlOAtCUsUn8DR3VQyai5Ieeyn Kx5jstbeY1WiSPDL0HDGKtBeYZT3N9NvZityzyLuJWcIX8O7ZzLGp6cfgmeUO22+kCOS EbZHXiacseA/nEVNwxB6c5ODWFSFQwBHY7tHvLoyujjzsDp5pnPfNPiMlSuLcXM18/vU qB/w== X-Gm-Message-State: AGi0PuaOEmoQH29aQh3jK0122N2xPzNOeo8tTm5PvKSlBJ2YX79djDRb M7dWEKJS5JUO8YqJvNb2sbmBpmN5QzA5mb+41rc= X-Google-Smtp-Source: APiQypL7avecuaJRy87Q9essS2wPx7RZSur5sEabBsGlRWnkftNt1Dk7sjrmb3dGzq+C7nS+0x0Ob5QaOqi/Vjpyqcg= X-Received: by 2002:a02:cbac:: with SMTP id v12mr1154268jap.103.1586420035496; Thu, 09 Apr 2020 01:13:55 -0700 (PDT) MIME-Version: 1.0 References: <20200403152609.GA35629@kam.mff.cuni.cz> <0dbc191e-66f7-9878-956d-96149f20f5bf@suse.cz> <20200408133252.GG2212@tucnak> <20d175a6-23df-43e5-7027-d11fc660abd1@suse.cz> In-Reply-To: From: Jonathan Wakely Date: Thu, 9 Apr 2020 08:13:44 +0000 Message-ID: Subject: Re: [PATCH] Allow new/delete operator deletion only for replaceable. To: Marc Glisse Cc: Richard Biener , =?UTF-8?Q?Martin_Li=C5=A1ka?= , Jason Merrill , Jakub Jelinek , Jan Hubicka , GCC Patches , Nathan Sidwell Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2020 08:13:57 -0000 On Thu, 9 Apr 2020 at 09:05, Marc Glisse wrote: > Note that the matching is not 1-to-1. Array vs non-array and > aligned vs non-aligned seem important, but sized and unsized delete can > both match the same new, IIUC. Right. > Not sure about the nothrow versions... This is valid, and mixes the nothrow new with non-nothrow delete: delete new (std::nothrow) int;