blob: 0042acd0670764c8ef66a62b54d7cfc4322fa93d [file] [log] [blame]
// PR c++/96104
template <typename T> void fn(T &);
class E {};
struct F {
template <typename T> void mfn(T t) { t, fn(E()); } // { dg-error "cannot bind non-const lvalue reference" }
};
int
main()
{
E e;
F f;
f.mfn(e);
}