From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23583 invoked by alias); 9 Dec 2015 15:39:59 -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 23568 invoked by uid 89); 9 Dec 2015 15:39:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Dec 2015 15:39:57 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-19-OAiwOV7KSHae76_30QopmA-1; Wed, 09 Dec 2015 15:39:51 +0000 Received: from [10.2.206.200] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 9 Dec 2015 15:39:50 +0000 Message-ID: <56684B46.1040002@arm.com> Date: Wed, 09 Dec 2015 15:39:00 -0000 From: Kyrill Tkachov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Marek Polacek , GCC Patches , Jason Merrill Subject: Re: [PATCH] Add testcase for c++/68348 References: <20151209153825.GS3175@redhat.com> In-Reply-To: <20151209153825.GS3175@redhat.com> X-MC-Unique: OAiwOV7KSHae76_30QopmA-1 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg01014.txt.bz2 On 09/12/15 15:38, Marek Polacek wrote: > This adds a testcase for the already fixed PR68348. > > Tested on x86_64-linux, ok for trunk? > > 2015-12-09 Marek Polacek > > PR c++/68348 > * g++.dg/cpp0x/pr68348.C: New test. > > diff --git gcc/testsuite/g++.dg/cpp0x/pr68348.C gcc/testsuite/g++.dg/cpp0= x/pr68348.C > index e69de29..9033bba 100644 > --- gcc/testsuite/g++.dg/cpp0x/pr68348.C > +++ gcc/testsuite/g++.dg/cpp0x/pr68348.C > @@ -0,0 +1,18 @@ > +// PR c++/68348 > +// { dg-do compile { target c++11 } } > + > +struct C { > + constexpr C() : w(), x(), y() {} > + constexpr double fn() const noexcept; > + double w; > + double x; > + double y; > +}; > + > +constexpr double C::fn() const noexcept { return w; } > +C foo() > +{ > + C c; > + c.fn (); > + return c; > +} > > Marek > Same as: https://gcc.gnu.org/ml/gcc-patches/2015-12/msg01001.html :) Kyrill