From: Paolo Carlini Date: Fri, 27 Oct 2017 10:45:25 +0000 (+0000) Subject: re PR c++/71385 (Internal compiler error when using concept as placeholder) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e89b556bafe224a4017bc4513d88b3e52253ce74;p=gcc.git re PR c++/71385 (Internal compiler error when using concept as placeholder) 2017-10-27 Paolo Carlini PR c++/71385 * g++.dg/concepts/pr71385.C: New. From-SVN: r254139 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 57a8f44f4cf..0b59449911c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-27 Paolo Carlini + + PR c++/71385 + * g++.dg/concepts/pr71385.C: New. + 2017-10-27 Paolo Carlini PR c++/80739 diff --git a/gcc/testsuite/g++.dg/concepts/pr71385.C b/gcc/testsuite/g++.dg/concepts/pr71385.C new file mode 100644 index 00000000000..bd5d08cb6f0 --- /dev/null +++ b/gcc/testsuite/g++.dg/concepts/pr71385.C @@ -0,0 +1,12 @@ +// { dg-options "-std=c++17 -fconcepts" } + +template +concept bool Addable(){ + return requires(T x){ + {x + x} -> T; + }; +} + +int main(){ + Addable t = 0; +}