Patchwork Add test for PR c++/53531

login
register
mail settings
Submitter Jonathan Wakely
Date July 12, 2012, 10:58 p.m.
Message ID <CAH6eHdRV-HxqZ_9F-ef+Hyc6iVc0S2UY+RF8nm77xqtazLMX8g@mail.gmail.com>
Download mbox | patch
Permalink /patch/170757/
State New
Headers show

Comments

Jonathan Wakely - July 12, 2012, 10:58 p.m.
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.gcc@gmail.com>
Date:   Thu Jul 12 23:37:40 2012 +0100

    	PR c++/53531
    	* testsuite/g++.dg/cpp0x/variadic135.C: New.
Jason Merrill - July 13, 2012, 7:01 a.m.
OK, thanks.

Jason

Patch

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