blob: cc5ebe786194c5d879fd2c51b6ffc7397a99d7d1 [file] [log] [blame]
// PR c++/81311
// { dg-do compile { target c++11 } }
struct function
{
template<class F> function(F) { }
};
struct ref
{
operator function&() const = delete;
} r;
struct val
{
operator function() const = delete;
} v;
int main()
{
function f1(r);
function f2(v);
}