From: paolo Date: Wed, 26 Sep 2018 09:08:24 +0000 (+0000) Subject: 2018-09-26 Paolo Carlini X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa03de5c4871629bf857c016f3fba848970d5807;p=thirdparty%2Fgcc.git 2018-09-26 Paolo Carlini 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 60b23ba33d35..531e2f15f3b0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-09-26 Paolo Carlini + + PR c++/67656 + * g++.dg/concepts/pr67656.C: New. + 2018-09-26 Eric Botcazou * 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 index 000000000000..2f1030e22325 --- /dev/null +++ b/gcc/testsuite/g++.dg/concepts/pr67656.C @@ -0,0 +1,19 @@ +// { dg-do compile { target c++11 } } +// { dg-additional-options "-fconcepts" } + +template +void consume(Xs&&...) {} + +template + struct A { + template + requires requires(Ys... ys) { + consume(Xs{ys}...); + } + A(Ys&&... ys) { + } +}; + +int main() { + A a(55, 2); +}