blob: e9074aa6c92a68b749cfd3815d0083453c9e0274 [file] [log] [blame]
// PR c++/50835
struct A {};
struct B
{
explicit B(A &);
operator A&() const;
};
void should_be_lvalue(A&);
template <typename>
void f()
{
A v;
should_be_lvalue(true ? B(v) : v);
}