re PR c++/57429 (Dependent function call with one visible declaration, deleted)

2018-05-08  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r260035
This commit is contained in:
Paolo Carlini 2018-05-08 10:47:24 +00:00 committed by Paolo Carlini
parent 93249dde86
commit a8f9665bb3
2 changed files with 15 additions and 0 deletions

View 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>

View File

@ -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; };