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 <jwakely....@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 via email to