1 // PR c++/58714
2 // { dg-do compile { target c++11 } }
3 
4 struct X {
5   X& operator=(const X&) = delete;
6   X& operator=(X&& ) = default;
7 };
8 
f(bool t)9 void f(bool t) {
10   X a, b;
11   *(t ? &a : &b) = X();
12   (t ? a : b) = X();
13 }
14