From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29742 invoked by alias); 8 Dec 2018 17:17:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 29729 invoked by uid 89); 8 Dec 2018 17:17:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:735 X-HELO: mail-ot1-f50.google.com Received: from mail-ot1-f50.google.com (HELO mail-ot1-f50.google.com) (209.85.210.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 08 Dec 2018 17:17:16 +0000 Received: by mail-ot1-f50.google.com with SMTP id 81so6759156otj.2 for ; Sat, 08 Dec 2018 09:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=O9+GdVsh2ai6RfNKaEjuPvmaXPLGIrQf9rCi+YsnzQY=; b=pYPOFYmXVzTpxFgVWGe7FRHytRwQCqkNr4W44VHM34S6nnKcQrfS11LsmjAxZgpaGM aRNanPojgR4AudRgYU57p/nEB9K55klos2DGMUZm9l+9/LtUNGK4oxeJt0yfIn/ST+Rm 3N7lxCbV5WOittSpgV+x23T10ZQ45M2izTNCPqo3482gQ8fh1yOmKp82vfpDolmE41Y9 DBq72Ny1NWcfvpTDQrnw1lBAph5qEuBSnf6LI8onFel6ATMsCf4n+YPvtNtg0m0F8l5R DKZaXT9c0t+yD859mjyxTvYP6XOnS1aRVemfGh6jwY/y4mrvvqcr2cowJQCbo+mBBOwV KmXg== MIME-Version: 1.0 References: <20181208165817.GU12380@tucnak> In-Reply-To: <20181208165817.GU12380@tucnak> From: Ville Voutilainen Date: Sat, 08 Dec 2018 17:17:00 -0000 Message-ID: Subject: Re: C++ PATCH for c++/88136, -Wdeprecated-copy too noisy To: Jakub Jelinek Cc: Jason Merrill , gcc-patches List Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-12/txt/msg00518.txt.bz2 On Sat, 8 Dec 2018 at 18:58, Jakub Jelinek wrote: > > g++ -c -pipe -O2 -fPIC -std=c++1z -fvisibility=hidden > > -fvisibility-inlines-hidden -ffunction-sections -fdata-sections > > -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 > > -W is an alias to -Wextra. Yeah. Jason, I seem to have code that user-provides a copy constructor (seemingly for no particular reason), doesn't bother declaring a copy assignment operator, and still breaks magnificently. :) There is no bug in it; the assignment works as expected, so that's a false positive. I am going to suggest taking this warning out of -Wextra and making it completely separate for GCC 9.