Message ID | 297ccc5f-2e95-f20c-f357-76cd849f0fc4@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-457650-incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3x2wdT3YDrz9s76 for <incoming@patchwork.ozlabs.org>; Thu, 6 Jul 2017 08:33:48 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="WLqcDHPJ"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; q=dns; s= default; b=lB7pi8oq1CEmDcFc4GcRQTfTH2SCSyhY7WCcvxTM6QAaqUI8yog1+ dY7yqFnSzlDL6eBk681ltsl713B/f+3BrMMAOOQfejquK3za3hJARmiijchD9HHC yKiHIGjwmdGbTTSlGm+Tk9VkiehXCjMqtW8Z/BA5tuNzEYjG9l4U7A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=default; bh=2misUeonA8/ipovh+NxE+NcdMP0=; b=WLqcDHPJKNc1QlXwbCejKadnqqah NXDXCDSWjvmOHfqXwHh6HFuvCerz1Otlm9cjBnuBrDAUDoUL709SZH6dxK2iOY3Q rtjclkmIkYRB313o3CY8JohUA2PRVZvhXpLd/FVj4cm5QdF4I8IoPDGSPk75Zg/m y/O4AvchqwYH10g= Received: (qmail 98110 invoked by alias); 5 Jul 2017 22:33:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 98091 invoked by uid 89); 5 Jul 2017 22:33:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-8.6 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS, UNSUBSCRIBE_BODY autolearn=ham version=3.3.2 spammy=type_traits, expectation, devised, HTo:U*palves X-HELO: mail-qk0-f179.google.com Received: from mail-qk0-f179.google.com (HELO mail-qk0-f179.google.com) (209.85.220.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Jul 2017 22:33:37 +0000 Received: by mail-qk0-f179.google.com with SMTP id d78so2424272qkb.1 for <gcc-patches@gcc.gnu.org>; Wed, 05 Jul 2017 15:33:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=TvEf6Zv5eWt/lDDrzyqivb6A3TUiJqHn9bC6Qh0mHPg=; b=pSjyqfZZ9mmnhtWEI8t6PMYV+Rn5sXtjrFaGVAXyL+O9h0Q7Guz73aMKbFeCJmShI7 sybEQt4w9Ig4Mk8weB3tBvxxXzCodyqFx3XgHcsCcKcR2a5DZwPIxnAw+pEmfljGVkqE fNOgTC6TAicezCCabc/l3/VQiwtxn76o5tvsOzrWvO3ApcUbxtgI/4pGDIOz0Mted0/0 xWgFbf2WqaZqdo+aRbzolIrxthadJH+o7PJQ4YWqHsLUOJFtgwiXf4XeT70iRHZ2lrsp KnYfh2oCALX8iMOBS+byPbRBRznJjWiqniIFlGAwkuBdXPXx2lHy+q0fRR+jGNYmt0F4 adBw== X-Gm-Message-State: AIVw111I7XRa05p36ohkJL7LH9R382c8NhclhxqFquWlQzl1LucMkVV7 ztcZujvkiCGIyA== X-Received: by 10.55.48.18 with SMTP id w18mr38141414qkw.3.1499294015872; Wed, 05 Jul 2017 15:33:35 -0700 (PDT) Received: from localhost.localdomain (75-171-229-159.hlrn.qwest.net. [75.171.229.159]) by smtp.gmail.com with ESMTPSA id g6sm207437qkb.33.2017.07.05.15.33.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 15:33:35 -0700 (PDT) Subject: Re: [PATCH] warn on mem calls modifying objects of non-trivial types (PR 80560) To: Andrew Pinski <pinskia@gmail.com>, Pedro Alves <palves@redhat.com> References: <b729a519-fdef-1ad7-3e33-4b3d451d1a1a@gmail.com> <656ca1db-1082-b1ed-a911-ba7bf48f09c0@redhat.com> <CA+=Sn1=3nMu0DuBNB9-jyADSijgXfkRa=1vHa872HoKMGTbKzw@mail.gmail.com> Cc: Gcc Patch List <gcc-patches@gcc.gnu.org>, Jason Merrill <jason@redhat.com> From: Martin Sebor <msebor@gmail.com> Message-ID: <297ccc5f-2e95-f20c-f357-76cd849f0fc4@gmail.com> Date: Wed, 5 Jul 2017 16:33:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <CA+=Sn1=3nMu0DuBNB9-jyADSijgXfkRa=1vHa872HoKMGTbKzw@mail.gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes |
--- a/gdb/common/enum-flags.h +++ b/gdb/common/enum-flags.h @@ -116,9 +116,7 @@ private: public: /* Allow default construction. */ - enum_flags () - : m_enum_value ((enum_type) 0) - {} + enum_flags () = default; /* If you get an error saying these two overloads are ambiguous, then you tried to mix values of different enum types. */