From patchwork Mon Jul 11 17:23:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 104256 Return-Path: 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]) by ozlabs.org (Postfix) with SMTP id 30C86B6F75 for ; Tue, 12 Jul 2011 03:23:29 +1000 (EST) Received: (qmail 20709 invoked by alias); 11 Jul 2011 17:23:27 -0000 Received: (qmail 20678 invoked by uid 22791); 11 Jul 2011 17:23:27 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from smtp209.alice.it (HELO smtp209.alice.it) (82.57.200.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jul 2011 17:23:12 +0000 Received: from [192.168.1.4] (79.53.14.126) by smtp209.alice.it (8.5.124.08) id 4DE658F8040CA366; Mon, 11 Jul 2011 19:23:10 +0200 Message-ID: <4E1B319E.9030702@oracle.com> Date: Mon, 11 Jul 2011 19:23:42 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: libstdc++ Subject: [v3] Small testsuite patch for -Wall X-IsSubscribed: yes 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 Hi, tested x86_64-linux, committed. Paolo. ///////////////////////// 2011-07-11 Paolo Carlini * testsuite/util/testsuite_allocator.h (propagating_allocator<>:: operator=(const propagating_allocator<>&)): Retun *this. Index: testsuite/util/testsuite_allocator.h =================================================================== --- testsuite/util/testsuite_allocator.h (revision 176144) +++ testsuite/util/testsuite_allocator.h (working copy) @@ -408,6 +408,7 @@ { static_assert(P2, "assigning propagating_allocator"); propagating_allocator(a).swap_base(*this); + return *this; } // postcondition: a.get_personality() == 0