From a8f9665bb30ae8633435429f5fe462587ed51a12 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 8 May 2018 10:47:24 +0000 Subject: [PATCH] re PR c++/57429 (Dependent function call with one visible declaration, deleted) 2018-05-08 Paolo Carlini PR c++/57429 * g++.dg/cpp0x/deleted14.C: New. From-SVN: r260035 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/cpp0x/deleted14.C | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/deleted14.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a292ea04a6d..adf08f7c7c6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-05-08 Paolo Carlini + + PR c++/57429 + * g++.dg/cpp0x/deleted14.C: New. + 2018-05-08 Richard Sandiford Alan Hayward David Sherwood diff --git a/gcc/testsuite/g++.dg/cpp0x/deleted14.C b/gcc/testsuite/g++.dg/cpp0x/deleted14.C new file mode 100644 index 00000000000..490db59fa81 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/deleted14.C @@ -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; }; -- 2.30.2