From patchwork Mon Aug 21 17:08:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Sidwell X-Patchwork-Id: 804102 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-460657-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="Glfp1KrY"; 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 3xbgBh1Gblz9sRW for ; Tue, 22 Aug 2017 03:08:40 +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 :subject:from:to:references:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=AkIPcVMFnRjYk3LFc kAYY5e2P/IjWtyQnzXMcUgIz/4CGFSPRJJzALj3N6aXI8vJmMMnxWd0kyKQCeqRg wmOhZbB+OCfHjPaUba0VEqafOZ3ofzER6TbGSwrEHHcqOMax5B+CDgobtjQKi6p5 9QmX8BQkYL5sI9ksoCIX7uyGRw= 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 :subject:from:to:references:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=t49AIU7eoEw3NCoGXPzWXpu VdLo=; b=Glfp1KrYRBO94rlQ3TzoneAO9Mj/cHu1TWSDOAyZ8UeE+yQBqiJHErx mlTNkqdXEtm9MoL0P+gvOYgXsy5JqZWJ1ZsY5+T7eR5Juy4kNaMuP/sTu6Yy+Zob UQpuiWbZ5ZB8aaqWeEPFvHUsLY+52zivzUXGaO0VFSsIxwUlX5aY= Received: (qmail 90878 invoked by alias); 21 Aug 2017 17:08:32 -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 90859 invoked by uid 89); 21 Aug 2017 17:08:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-yw0-f182.google.com Received: from mail-yw0-f182.google.com (HELO mail-yw0-f182.google.com) (209.85.161.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Aug 2017 17:08:30 +0000 Received: by mail-yw0-f182.google.com with SMTP id y64so10290790ywf.3 for ; Mon, 21 Aug 2017 10:08:29 -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:subject:from:to:references:message-id :date:user-agent:mime-version:in-reply-to:content-language; bh=mQkAtfSV1vP0334ldohTyfNtUzfhHaPpXK/qsIgESm0=; b=nD52Dk28vcnhIBgIvjqL9u+BikrrcDtP6fPIQveNzvOgTe8WBWiaTfzL/ChwwGKlj/ Krypf4DrEmxGKLuyjrZQ5ZG/l7ipdp6ojJhsl36zZ1d9uL5+tYEFNDhdpocwYEsjMfS1 8Rla/xCo64yHWsRMba/I35Gi+Nx8xhvSiA2k7eP5SvPkfX2M+k1vzkoLxkXagHnrYAFu 7qkVyqS5bRtO7Bv7o1zu+mIMNI4vRnaP4Donfs4Pms9zDRBFFKgm8wObh/lG5bk4fla3 XbpAmZOsBB138hYEX5F0UieP4Sws2l7yzXH4idtBki7qpMf1QnrBAUvtbQxByZJK1eeE +fhQ== X-Gm-Message-State: AHYfb5iq+VzVgaCz8kwzPr+H5mD+9fqjkqLujV4E/VqBobESxzGUcZpW pzF+ObL8dEIBK7EK X-Received: by 10.13.247.199 with SMTP id h190mr6286177ywf.352.1503335308076; Mon, 21 Aug 2017 10:08:28 -0700 (PDT) Received: from ?IPv6:2620:10d:c0a3:20fb:7500:e7fb:4a6f:2254? ([2620:10d:c091:200::2:59fa]) by smtp.googlemail.com with ESMTPSA id m125sm4619379ywf.71.2017.08.21.10.08.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 10:08:27 -0700 (PDT) Subject: Re: [c++/81899] bound tpl-tpl-parm ICE From: Nathan Sidwell To: GCC Patches References: Message-ID: Date: Mon, 21 Aug 2017 13:08:25 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: I missed a c++-03 requirement about friends. Fixed thusly. Also fixed the recent debug9 failure for stabs debugging. That test appears to be a dwarf test, but as there's no dg-requires-dwarf the simplest fix was turning off block partitioning optimization (enabled on x86 automatically at O2 and above). nathan 2017-08-21 Nathan Sidwell * g++.dg/template/pr81899.C: Fix c++03. * g++.dg/debug/debug9.C: Add -fno-reorder-blocks-and-partition" Index: g++.dg/debug/debug9.C =================================================================== --- g++.dg/debug/debug9.C (revision 251221) +++ g++.dg/debug/debug9.C (working copy) @@ -1,4 +1,9 @@ /* { dg-do assemble } */ +/* Partitioning causes hot/cold section emission and breaks stabs + debugging. */ +/* { dg-additional-options "-fno-reorder-blocks-and-partition" } */ + + /* This testcase requires entries in the debug_range section in DWARF which refer to a vague linkage function. */ Index: g++.dg/template/pr81899.C =================================================================== --- g++.dg/template/pr81899.C (revision 251227) +++ g++.dg/template/pr81899.C (working copy) @@ -2,7 +2,7 @@ template