http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48655
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-01-07 Ever Confirmed|0 |1 --- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2013-01-07 22:56:20 UTC --- I think this has to be fixed at the documentation level (unless the optimizer is able to report that a temporary has been removed). Presently the manual says: > -Warray-temporaries > Warn about array temporaries generated by the compiler. > The information generated by this warning is sometimes useful > in optimization, in order to avoid such temporaries. What about replacing the first sentence with "Warn about array temporaries generated by the front-end" (if front-end is found too geek speak, one could use "by the early stage of the compiler" or whatever is deemed suitable). Then one could add a sentence of the kind "Note that some optimizing stage can silently remove the temporary if it can prove it is not necessary." (again translation from Frenglish to plain English welcomed).