From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117173 invoked by alias); 26 May 2015 16:37:52 -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 117164 invoked by uid 89); 26 May 2015 16:37:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 26 May 2015 16:37:47 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t4QGbjb5030187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 May 2015 12:37:46 -0400 Received: from reynosa.quesejoda.com (unused [10.10.52.191] (may be forged)) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t4QGbiQx008460; Tue, 26 May 2015 12:37:45 -0400 Message-ID: <5564A158.8010604@redhat.com> Date: Tue, 26 May 2015 17:02:00 -0000 From: Aldy Hernandez User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Jason Merrill , gcc-patches CC: Richard Biener Subject: Re: [debug-early] fix problem with template parameter packs References: <55482AF6.1090207@redhat.com> <5549314D.6080804@redhat.com> <5549373F.6020503@redhat.com> <554A4146.4010501@redhat.com> In-Reply-To: <554A4146.4010501@redhat.com> Content-Type: multipart/mixed; boundary="------------090700030505050102090408" X-SW-Source: 2015-05/txt/msg02358.txt.bz2 This is a multi-part message in MIME format. --------------090700030505050102090408 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-length: 1460 On 05/06/2015 12:28 PM, Jason Merrill wrote: > On 05/05/2015 04:33 PM, Aldy Hernandez wrote: >> On 05/05/2015 02:08 PM, Jason Merrill wrote: >>> On 05/04/2015 09:29 PM, Aldy Hernandez wrote: >>>> The code handling parameter DIEs needed a little tweaking for variable >>>> length template arguments. I've relaxed the original assert, but this >>>> may require tweaking at branch review time-- hopefully later this week. >>> >>> What testcase motivated this? We're within a formal_parameter_pack, but >> >> Pretty much every other test in the libstdc++-v3 testsuite was failing >> with the ICE I elided in my patch. >> >> I wasn't able to narrow it down to a tiny test, but I can do so if you >> want. ?? > > I think that would be helpful so we can decide what we want the debug > output to look like. > > Jason > > Removing the aforementioned patch from the branch with the attached one-liner, you can reproduce on the following reduced testcase (-O -g -quiet -std=gnu++14): template < typename _Tp > _Tp forward () { }; template < typename blahblah > class vector { public: template < typename ... _Args > void emplace_back (_Args ...); template < typename ... _Args > void _M_emplace_back_aux (_Args ...); }; template < typename _Tp > template < typename ... _Args > void vector <_Tp >::emplace_back (_Args ...) { _M_emplace_back_aux (forward < _Args > ...); } void foobar () { vector < int >myvecint; myvecint.emplace_back (0, 0); } --------------090700030505050102090408 Content-Type: text/plain; charset=UTF-8; name="curr" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="curr" Content-length: 484 ZGlmZiAtLWdpdCBhL2djYy9kd2FyZjJvdXQuYyBiL2djYy9kd2FyZjJvdXQu YwppbmRleCA3NTAyZmJjLi40ZjNiNDg0IDEwMDY0NAotLS0gYS9nY2MvZHdh cmYyb3V0LmMKKysrIGIvZ2NjL2R3YXJmMm91dC5jCkBAIC0xODAwNiw2ICsx ODAwNiw3IEBAIGdlbl9mb3JtYWxfcGFyYW1ldGVyX2RpZSAodHJlZSBub2Rl LCB0cmVlIG9yaWdpbiwgYm9vbCBlbWl0X25hbWVfcCwKIAkgICAgfQogCSAg ZWxzZQogCSAgICB7CisJICAgICAgZ2NjX3VucmVhY2hhYmxlKCk7CiAJICAg ICAgLyogUmV1c2UgRElFIGV2ZW4gd2l0aCBhIGRpZmZlcmluZyBjb250ZXh0 LgogCiAJCSBUaGlzIGhhcHBlbnMgd2hlbiBjYWxsZWQgdGhyb3VnaAo= --------------090700030505050102090408--