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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8f9665bb30ae8633435429f5fe462587ed51a12;p=gcc.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 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; };