summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/pr31437.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/pr31437.C')
-rw-r--r--gcc/testsuite/g++.dg/cpp0x/pr31437.C10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/pr31437.C b/gcc/testsuite/g++.dg/cpp0x/pr31437.C
new file mode 100644
index 000000000..0b64f7273
--- /dev/null
+++ b/gcc/testsuite/g++.dg/cpp0x/pr31437.C
@@ -0,0 +1,10 @@
+// { dg-options "-std=gnu++0x" }
+template <typename... T> struct A // { dg-error "candidates|A" }
+{
+ A(T* p) { // { dg-error "parameter packs|T" }
+ (A<T...>*)(p);
+ }
+};
+
+A<int> a(0); // { dg-error "no matching" }
+// { dg-message "candidate" "candidate note" { target *-*-* } 9 }