re PR c++/67656 ([concepts] matched variadics in expression constraint report as...
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 26 Sep 2018 09:08:24 +0000 (09:08 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 26 Sep 2018 09:08:24 +0000 (09:08 +0000)
2018-09-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/67656
* g++.dg/concepts/pr67656.C: New.

From-SVN: r264596

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/concepts/pr67656.C [new file with mode: 0644]

index 60b23ba33d355fad11b0c9a329d0621d32251558..531e2f15f3b00a902c70e13c5cf0da0c77305755 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-26  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/67656
+       * g++.dg/concepts/pr67656.C: New.
+
 2018-09-26  Eric Botcazou  <ebotcazou@adacore.com>
 
        * g++.dg/other/vthunk1.C: Rename to...
diff --git a/gcc/testsuite/g++.dg/concepts/pr67656.C b/gcc/testsuite/g++.dg/concepts/pr67656.C
new file mode 100644 (file)
index 0000000..2f1030e
--- /dev/null
@@ -0,0 +1,19 @@
+// { dg-do compile { target c++11 } }
+// { dg-additional-options "-fconcepts" }
+
+template<class... Xs>                 
+void consume(Xs&&...) {}
+
+template<class... Xs>
+  struct A {
+    template<class... Ys>
+    requires requires(Ys... ys) {
+      consume(Xs{ys}...);
+    }
+  A(Ys&&... ys) {
+  }
+};
+
+int main() {
+  A<int, long> a(55, 2);
+}