public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: gcc-patches <gcc-patches@gcc.gnu.org>
Cc: Jason Merrill <jason@redhat.com>
Subject: [patch] Add test for PR c++/53531
Date: Thu, 12 Jul 2012 22:58:00 -0000	[thread overview]
Message-ID: <CAH6eHdRV-HxqZ_9F-ef+Hyc6iVc0S2UY+RF8nm77xqtazLMX8g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

        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?

[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 576 bytes --]

commit 2fa33c6b4e5533b7d87ba559b43bb06e501e9851
Author: Jonathan Wakely <jwakely.gcc@gmail.com>
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 <typename ...> struct S;
+
+int i = S<int,>::undefined; // { dg-error "template argument 2 is invalid" }
+

             reply	other threads:[~2012-07-12 22:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 22:58 Jonathan Wakely [this message]
2012-07-13  7:01 ` Jason Merrill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH6eHdRV-HxqZ_9F-ef+Hyc6iVc0S2UY+RF8nm77xqtazLMX8g@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).