summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr32126.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr32126.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr32126.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr32126.C b/gcc/testsuite/g++.dg/cpp0x/pr32126.C
new file mode 100644
index 000000000..c525cca68
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr32126.C
@@ -0,0 +1,10 @@
+// { dg-options "-std=c++0x" }
+template<typename...> struct A;
+
+template<typename...T> struct A<T> // { dg-error "not expanded|T|" }
+{
+ static int i;
+};
+
+A<char> a; // { dg-error "incomplete" }
+A<int> b; // { dg-error "incomplete" }