From patchwork Thu Jul 12 22:58:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 170757 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]) by ozlabs.org (Postfix) with SMTP id AFEB32C02CE for ; Fri, 13 Jul 2012 08:58:47 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1342738728; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=XvQ70lU iiq8WRVVq9xnxBoK9968=; b=kw9pl2ZWs8su+ZrPjaFn7d6AFe3QJcVs7bCEuIx KfpXvC6llMUfVJOx0vebnA3uNsjYjw8YUZwP+oo0cbRRLblqIah6Mi1Hd3RsE1RN N7ZuohcuT1x7/s9YgZUomPoOgXNfJAWIELOZLQm4oMZkPcrxHuFnAkS9V0gujZy3 9g8I= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=hBxmHa9IjCaucykjtEUzetS+vxR2Ks8uXNVpNPiLh92FmmvRqoo0Fhvl93xZ4Y lbQAhIV+liPP+MP7RVpCTLOdKj2x6lX6iNxQW3xkUIeQX/0O08GJCPpLAJRpmvfZ kRt3HigiY7yMSoF/emkoW3NRto4rQwRMnFdvVducXY8WI=; Received: (qmail 11428 invoked by alias); 12 Jul 2012 22:58:42 -0000 Received: (qmail 11408 invoked by uid 22791); 12 Jul 2012 22:58:41 -0000 X-SWARE-Spam-Status: No, hits=-4.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jul 2012 22:58:29 +0000 Received: by lbol5 with SMTP id l5so4221252lbo.20 for ; Thu, 12 Jul 2012 15:58:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.54.37 with SMTP id g5mr1935460lbp.104.1342133907446; Thu, 12 Jul 2012 15:58:27 -0700 (PDT) Received: by 10.112.27.228 with HTTP; Thu, 12 Jul 2012 15:58:27 -0700 (PDT) Date: Thu, 12 Jul 2012 23:58:27 +0100 Message-ID: Subject: [patch] Add test for PR c++/53531 From: Jonathan Wakely To: gcc-patches Cc: Jason Merrill 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 PR c++/53531 * testsuite/g++.dg/cpp0x/variadic135.C: New. As suggested in the PR comments this adds a test to ensure this doesn't regress. OK for trunk? commit 2fa33c6b4e5533b7d87ba559b43bb06e501e9851 Author: Jonathan Wakely Date: Thu Jul 12 23:37:40 2012 +0100 PR c++/53531 * testsuite/g++.dg/cpp0x/variadic135.C: New. diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic135.C b/gcc/testsuite/g++.dg/cpp0x/variadic135.C new file mode 100644 index 0000000..ef50aa1 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/variadic135.C @@ -0,0 +1,6 @@ +// { dg-options "-std=gnu++0x" } + +template struct S; + +int i = S::undefined; // { dg-error "template argument 2 is invalid" } +