From: Paolo Carlini Date: Tue, 8 May 2018 10:47:24 +0000 (+0000) Subject: re PR c++/57429 (Dependent function call with one visible declaration, deleted) X-Git-Tag: basepoints/gcc-10~6939 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8f9665bb30ae8633435429f5fe462587ed51a12;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a292ea04a6d9..adf08f7c7c6b 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 000000000000..490db59fa81b --- /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; };