From patchwork Tue Nov 15 14:39:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 695050 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tJ95r5sc8z9t1C for ; Wed, 16 Nov 2016 01:40:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="qr8eKOO+"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=o6FbewWYqxMugO/qh 9TAFvgmu+4v/T+Zl1oKH7gdaFQ4QNECYcmP/J7MqEl3NAAXHRkpWahKFasiOUiB2 sz+uK7WfTbK4KHZaD5u7l+FdxjHNcpYk8OjPVEUz9b3FO1OrU3hWj7pcn+5WklM5 KFhAn/LTt8Xz+5+OzuUyuwUYR8= 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:date :from:to:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; s=default; bh=6rUq8FCkMkIH0oDiFYb9tbs hTyk=; b=qr8eKOO+zDRZ2LOaf/xQe6opfWCXI/sFVYWhJQHSnIKolampd9tcCsh yOl+pEeXWzcYj2hRFW5TzWypPwScugjXMH1t86BzOQHeYBxxTyEfo0eVI0QwcHOH OImkIjzqJGtNBwtjHnj08cx4DkkSaVkHJwRZYX2T67xZwzhbBUUc= Received: (qmail 122929 invoked by alias); 15 Nov 2016 14:39:51 -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 122908 invoked by uid 89); 15 Nov 2016 14:39:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= 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 ESMTP; Tue, 15 Nov 2016 14:39:49 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 253B78EB43 for ; Tue, 15 Nov 2016 14:39:48 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-204-19.brq.redhat.com [10.40.204.19]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAFEdkof014124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 15 Nov 2016 09:39:47 -0500 Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id uAFEdjA5028880; Tue, 15 Nov 2016 15:39:45 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id uAFEdiQ8028879; Tue, 15 Nov 2016 15:39:44 +0100 Date: Tue, 15 Nov 2016 15:39:44 +0100 From: Jakub Jelinek To: Jason Merrill Cc: gcc-patches List Subject: [C++ PATCH] tweak PR77337 testcase Message-ID: <20161115143944.GI3541@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <20161110215027.GO3541@tucnak.redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20161110215027.GO3541@tucnak.redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes On Thu, Nov 10, 2016 at 10:50:27PM +0100, Jakub Jelinek wrote: > > + self(); // error: use of 'decltype(auto) fix_type::operator()() [with Functor = main()::]' before deduction of 'auto' > > Wouldn't it be clearer to turn that // error: line into > // { dg-bogus "use of \[^\n\r]* before deduction of 'auto'" } > so that it is clear that the error is undesirable even to casual reader? Now in the form of patch. Tested on x86_64-linux, ok for trunk? 2016-11-15 Jakub Jelinek * g++.dg/cpp1y/auto-fn33.C (main): Turn // error: ... into dg-bogus. Jakub --- gcc/testsuite/g++.dg/cpp1y/auto-fn33.C.jj 2016-11-11 12:45:40.000000000 +0100 +++ gcc/testsuite/g++.dg/cpp1y/auto-fn33.C 2016-11-15 15:36:58.538054171 +0100 @@ -20,7 +20,7 @@ int main() { return 0; - self(); // error: use of 'decltype(auto) fix_type::operator()() [with Functor = main()::]' before deduction of 'auto' + self(); // { dg-bogus "use of \[^\n\r]* before deduction of 'auto'" } }); return zero();