re PR c++/57429 (Dependent function call with one visible declaration, deleted)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 8 May 2018 10:47:24 +0000 (10:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 8 May 2018 10:47:24 +0000 (10:47 +0000)
2018-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/57429
* g++.dg/cpp0x/deleted14.C: New.

From-SVN: r260035

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

index a292ea04a6d997e1037aa60a149057b85d434ca6..adf08f7c7c6baba0a2703d64db979c859784cc84 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR c++/57429
+       * g++.dg/cpp0x/deleted14.C: New.
+
 2018-05-08  Richard Sandiford  <richard.sandiford@linaro.org>
            Alan Hayward  <alan.hayward@arm.com>
            David Sherwood  <david.sherwood@arm.com>
diff --git a/gcc/testsuite/g++.dg/cpp0x/deleted14.C b/gcc/testsuite/g++.dg/cpp0x/deleted14.C
new file mode 100644 (file)
index 0000000..490db59
--- /dev/null
@@ -0,0 +1,10 @@
+// PR c++/57429
+// { dg-do compile { target c++11 } }
+
+void f() = delete;
+
+template< typename t >
+void ft() { f( t() ); }
+
+template< typename t >
+struct ct { decltype( f( t() ) ) m; };