]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2018-09-26 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2018 09:08:24 +0000 (09:08 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Sep 2018 09:08:24 +0000 (09:08 +0000)
PR c++/67656
* g++.dg/concepts/pr67656.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264596 138bc75d-0d04-0410-961f-82ee72b054a4

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);
+}