re PR c++/71385 (Internal compiler error when using concept as placeholder)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 27 Oct 2017 10:45:25 +0000 (10:45 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 27 Oct 2017 10:45:25 +0000 (10:45 +0000)
2017-10-27  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71385
* g++.dg/concepts/pr71385.C: New.

From-SVN: r254139

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

index 57a8f44f4cfca6b94b340ee2889a2965e350d5df..0b59449911c8b141793608648009b725b6070db9 100644 (file)
@@ -1,3 +1,8 @@
+2017-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/71385
+       * g++.dg/concepts/pr71385.C: New.
+
 2017-10-27  Paolo Carlini  <paolo.carlini@oracle.com>
 
        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 (file)
index 0000000..bd5d08c
--- /dev/null
@@ -0,0 +1,12 @@
+// { dg-options "-std=c++17 -fconcepts" }
+
+template<class T>
+concept bool Addable(){
+ return requires(T x){
+  {x + x} -> T;
+ };
+}
+
+int main(){
+ Addable t = 0;
+}