From patchwork Wed May 22 21:45:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 1103694 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-501473-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="IroCBnjs"; 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 458R5X5qTkz9s7h for ; Thu, 23 May 2019 07:45:42 +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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=K4ZIbZOUqxgfg+RjAfC/BNrb//8F/NJxFUDuQOJkdds/TpG2neFwb lqxhdv3sSNnwK2Sp1JV5x6Xvd4drbH3e2nY+LENK3AkgVNCXIqsypzfEI/kikJ1S hwkvHtT1dQj7rfibQu4OgNOUKmCRDVffOIaF8igCKqBbNVUErB5K6A= 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:subject:message-id:mime-version:content-type; s= default; bh=sj7Rinvw0eo2JayHG0ip9731rUc=; b=IroCBnjsUbLpKccmqTV3 WVg9xGdo0V+dFWtFnuDWqY7WlDR6PFnAA0MeqOxUcPMpI7xGW4n6ll8YJT97VYxH kNmIQRLtrLrhIQRRktGhBNFuc39BoxFN2O9xde76TWSlhzwfYEBQ0UgYaI0eFvyJ EHjAmxKW49EeECfC8Hca8ds= Received: (qmail 66715 invoked by alias); 22 May 2019 21:45:34 -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 66600 invoked by uid 89); 22 May 2019 21:45:24 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=r271492 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; Wed, 22 May 2019 21:45:23 +0000 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3FAE63003B53; Wed, 22 May 2019 21:45:10 +0000 (UTC) Received: from redhat.com (unknown [10.20.4.51]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B6D861001F5D; Wed, 22 May 2019 21:45:08 +0000 (UTC) Date: Wed, 22 May 2019 17:45:07 -0400 From: Marek Polacek To: Jason Merrill , GCC Patches , Paolo Carlini Subject: [C++ PATCH] Fix udlit-char-template-neg.C test Message-ID: <20190522214507.GU7979@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) I noticed this test fails since r271492. Probably obvious, but... Tested on x86_64-linux, ok for trunk? 2019-05-22 Marek Polacek * g++.dg/cpp1y/udlit-char-template-neg.C: Expect the error on a different line. Check the column number too. diff --git gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C index e77ea45890d..6295256b53d 100644 --- gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C +++ gcc/testsuite/g++.dg/cpp1y/udlit-char-template-neg.C @@ -2,7 +2,7 @@ template int - operator"" _script() - { return 42; } // { dg-error "literal operator template|has invalid parameter list" } + operator"" _script() // { dg-error "3:literal operator template|has invalid parameter list" } + { return 42; } int i = "hi!"_script;