http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59193
Max TenEyck Woodbury <mtewoodbury at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #12 from Max TenEyck Woodbury <mtewoodbury at gmail dot com> --- Just because the compiler is ALLOWED to discard the r-value as part of the OPTIMIZATION process, does NOT mean that a program that calls for an EXTRANEOUS temporary is without defect. Such a program IS trivially defective and removing that kind of defect should be allowed without comment. Such changes may want to cite an open bug report as their justification. While you are arguing about what the compiler does, the issue here is about what the source code calls for. The compiler can and should clean up such defects, but it should not be called upon to do so. THAT i the issue and you are NOT addressing it.