public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch] Add test for PR c++/53531
@ 2012-07-12 22:58 Jonathan Wakely
  2012-07-13  7:01 ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Wakely @ 2012-07-12 22:58 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jason Merrill

[-- 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" }
+

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] Add test for PR c++/53531
  2012-07-12 22:58 [patch] Add test for PR c++/53531 Jonathan Wakely
@ 2012-07-13  7:01 ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2012-07-13  7:01 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-patches

OK, thanks.

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-13  7:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 22:58 [patch] Add test for PR c++/53531 Jonathan Wakely
2012-07-13  7:01 ` Jason Merrill

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).