From patchwork Tue Sep 20 17:53:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ville Voutilainen X-Patchwork-Id: 115616 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 6FC6CB6F92 for ; Wed, 21 Sep 2011 03:54:33 +1000 (EST) Received: (qmail 20044 invoked by alias); 20 Sep 2011 17:54:27 -0000 Received: (qmail 20030 invoked by uid 22791); 20 Sep 2011 17:54:24 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Sep 2011 17:53:59 +0000 Received: by fxi1 with SMTP id 1so867428fxi.20 for ; Tue, 20 Sep 2011 10:53:57 -0700 (PDT) Received: by 10.223.36.68 with SMTP id s4mr1684070fad.92.1316541233703; Tue, 20 Sep 2011 10:53:53 -0700 (PDT) Received: from ville-laptop.gmail.com (dsl-olubrasgw1-ff2fc100-74.dhcp.inet.fi. [88.193.47.74]) by mx.google.com with ESMTPS id o16sm1976568fag.21.2011.09.20.10.53.51 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Sep 2011 10:53:52 -0700 (PDT) Date: Tue, 20 Sep 2011 20:53:40 +0300 Message-ID: <878vpj2j8b.wl%ville@ville-laptop> From: Ville Voutilainen To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com Subject: Re: [PATCH] C++11, implement delegating constructors In-Reply-To: <87aa9z2kco.wl%ville@ville-laptop> References: <87aa9z2kco.wl%ville@ville-laptop> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") 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 At Tue, 20 Sep 2011 20:29:27 +0300, Ville Voutilainen wrote: > --- a/gcc/testsuite/g++.dg/template/meminit1.C > +++ b/gcc/testsuite/g++.dg/template/meminit1.C > @@ -2,7 +2,7 @@ > template > struct S > { > - S() : S() {} // { dg-error "base" } > + S() : S() {} > }; > > -S s; // { dg-message "required" } > +S s; // { dg-warning "delegating constructors" } Duh. That dg-warning should be on line 5, not 8. Incremental patch follows. Pardon the haste. diff --git a/gcc/testsuite/g++.dg/template/meminit1.C b/gcc/testsuite/g++.dg/template/meminit1.C index fc31828..efdbe80 100644 --- a/gcc/testsuite/g++.dg/template/meminit1.C +++ b/gcc/testsuite/g++.dg/template/meminit1.C @@ -2,7 +2,7 @@ template struct S { - S() : S() {} + S() : S() {} // { dg-warning "delegating constructors" } }; -S s; // { dg-warning "delegating constructors" } +S s;