From patchwork Tue Jan 15 18:27:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 1025355 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-494093-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="RL3i9m92"; 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 43fJj945t8z9s2P for ; Wed, 16 Jan 2019 05:27:23 +1100 (AEDT) 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=foLRTBvxb1344aB4ZFgFlLm2wR41k/RtBcXKDPjp5UYCWcyPm8xtv MPFuncR1FhcldEQPY2lRZrvlZ+IDNo8FokGc+IrFvjYOegBJDFNnr64ENrxujsr9 znXoMb5BHbc9oMM6YxW58Deilj7woFZ7e4xCITn2DuKjsV7bpzCY+k= 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=MObZom+eF3LHmcT92bG/Jii3bQk=; b=RL3i9m92EVIZfzWSQ7bu 3GYSfmJg3W7a1yjxoYcCq5YNOCye8Y8+RaKFconQ41CXRQ9IGZ+pG5SNGP5OtJdI Stgx2RZEfiNqlpj0f5jH7ZOZ8T8D+GjO6UWFiPwW5jaTkmTrRzQ2iBeP4IZzS/4D tAeVn5BlcJ0BRW7oCg/iWWs= Received: (qmail 105397 invoked by alias); 15 Jan 2019 18:27:17 -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 105385 invoked by uid 89); 15 Jan 2019 18:27:16 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=sk:templat 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 Jan 2019 18:27:15 +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 20FA636809 for ; Tue, 15 Jan 2019 18:27:14 +0000 (UTC) Received: from redhat.com (ovpn-120-189.rdu2.redhat.com [10.10.120.189]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9512A103BAB8; Tue, 15 Jan 2019 18:27:13 +0000 (UTC) Date: Tue, 15 Jan 2019 13:27:18 -0500 From: Marek Polacek To: Jason Merrill , GCC Patches Subject: C++ PATCH to tweak variadic126.C test (PR c++/88866) Message-ID: <20190115182718.GH19569@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) This test was failing in c++2a because the error messages are different because we're now trying to parse braced-list in template-argument-list. Tested on x86_64-linux, ok for trunk? 2019-01-15 Marek Polacek PR c++/88866 * g++.dg/cpp0x/variadic126.C: Tweak dg-error. diff --git gcc/testsuite/g++.dg/cpp0x/variadic126.C gcc/testsuite/g++.dg/cpp0x/variadic126.C index 513c7e54a07..a219309f058 100644 --- gcc/testsuite/g++.dg/cpp0x/variadic126.C +++ gcc/testsuite/g++.dg/cpp0x/variadic126.C @@ -3,6 +3,6 @@ template < typename ... > struct A; -struct B : A < // { dg-error "invalid" } +struct B : A < // { dg-error "invalid" "" { target c++17_down } } { -}; +}; // { dg-error "mismatch|expected" "" { target c++2a } }