1 // PR c++/70344 2 // { dg-do compile { target c++11 } } 3 // { dg-options -O } 4 5 struct Z 6 { 7 Z () = default; 8 Z (Z const &) = default; ZZ9 constexpr Z (Z &&) {} 10 }; 11 12 constexpr int fn(Z v)13 fn (Z v) 14 { 15 return fn (v); 16 } 17 18 auto t = fn (Z ()); 19