From patchwork Fri Sep 1 18:12:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 808921 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-461321-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="kk35m8i8"; dkim-atps=neutral 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 3xkS533SrHz9s7g for ; Sat, 2 Sep 2017 04:12:21 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=w0CCKw84JYMGvSz7/Yg6kvUfPhhmvXmdIB2cO03T6zSAslUWtA TXV+QVM/9BGDuQGimmCdugG5eI0ICmfKYODcukFh9x6PAqIEVt4vqmklmAKadGXc Ei46l2WiscvaSuiolGT/B9xrcfEvf2xwfAuT66iBI9SlP1HIvxjjxA/f0= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=2zPNBRA09XHx2ys4WTs5IJ3wJ20=; b=kk35m8i8qHxgAhN5atBw AZa+d3nJcJkKQ6sSmOZesBH2pw+iPFlfMYCPtbcKTok8gDLAv62jWnx/yrHpG/Yx 1skmQu/ji00xGQJxEqN+wpQ7wnffvSOk0PBzQqD9s+Xy2GvQbT0p4qYTAmr7lNys DX0n/fKy5aC8egG7mgcAitc= Received: (qmail 93265 invoked by alias); 1 Sep 2017 18:12:15 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 93255 invoked by uid 89); 1 Sep 2017 18:12:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.4 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-yw0-f179.google.com Received: from mail-yw0-f179.google.com (HELO mail-yw0-f179.google.com) (209.85.161.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Sep 2017 18:12:10 +0000 Received: by mail-yw0-f179.google.com with SMTP id h127so4621880ywf.3 for ; Fri, 01 Sep 2017 11:12:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language; bh=522hJcyYmNdxAPrHNFcgwvBO/YfXujgilF7YdMEHj+M=; b=BZZOqxL+alw5PioAgpEnHrH9raBbmCicsN0Olgqn5sbMnLW1uuBXph+4GQf4ucQbPe tW3/BfuU90YSA9q5QeED+sEDvnB2y68s/WeIsQODePnY6AYS8vJUU0BNA4JfAw6wsMqw ABUiLVJosDkGKVCITBK6SYRTVdgj2b0+9JqLhfDtEJcUeZvoEZAYGjy4+cc5N/MbueM9 6cB5ID1bIQmZS2PO2e5qrWryNP19aUDqdcnxOFCaS2o7E51B9UGa7YnufCnwl0ZoQFuV p4RumbVKAyl/2IQoTq1Jd00IS0+MbPFVRyLPCJgVINHgdBh6ftsCLpPVCDE3c4SePFXS zKpg== X-Gm-Message-State: AHPjjUjIxMJGBSmUlHc4isij/VNamEpsq1bmEBq/xcKRao2y6p8njCn1 9sFLyzXnXHxPSQ== X-Google-Smtp-Source: ADKCNb642cwYoZovBTE14Nri1mz2ElQ48IQKcKQD0bMNYWdg54kUbmGlNZ2ctAlZ9djco8pCLl4i2w== X-Received: by 10.129.163.8 with SMTP id a8mr2630143ywh.240.1504289528332; Fri, 01 Sep 2017 11:12:08 -0700 (PDT) Received: from ?IPv6:2620:10d:c0a3:20fb:7500:e7fb:4a6f:2254? ([2620:10d:c091:200::1:d19a]) by smtp.googlemail.com with ESMTPSA id l20sm291299ywb.24.2017.09.01.11.12.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Sep 2017 11:12:07 -0700 (PDT) To: GCC Patches From: Nathan Sidwell Subject: [C++ PATCH] missing set_class_binding call Message-ID: Date: Fri, 1 Sep 2017 14:12:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 This patch adds a set_class_binding call that was missing from the template class definition case. Brief experimentation shows undetectable difference in performance. Applied to trunk. nathan 2017-09-01 Nathan Sidwell * class.c (finish_struct): Call set_class_bindings for the template case too. Index: class.c =================================================================== --- class.c (revision 251604) +++ class.c (working copy) @@ -7188,6 +7188,7 @@ finish_struct (tree t, tree attributes) /* COMPLETE_TYPE_P is now true. */ finish_struct_methods (t); + set_class_bindings (t, TYPE_FIELDS (t)); /* We need to emit an error message if this type was used as a parameter and it is an abstract type, even if it is a template. We construct