http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57064
--- Comment #13 from Marc Glisse <glisse at gcc dot gnu.org> 2013-04-26
05:05:48 UTC ---
Note for Thiago: please be aware of the risks of returning an rvalue reference,
as opposed to just a value. The following codes will fail at runtime:
Qstring const& a=QString("%1 %2 %3 %4").arg(42).arg(47).arg(-42).arg(-47);
Qstring && b=QString("%1 %2 %3 %4").arg(42).arg(47).arg(-42).arg(-47);
for(char c : QString("%1 %2 %3 %4").arg(42).arg(47).arg(-42).arg(-47))...