Tue, 17 Nov 2009 20:23:35 -0500, Robert Jacques wrote: > Also, all those well > known optimizations don't magically work for structs: I've seen modern > compilers do some pretty stupid things when structs and temporary values > are involved.
Are you talking about dmc/dmd now? Have you tried gcc 4.4 or 4.5, llvm dev version or latest visual c++ ? Temporary values are often used with e.g. expression templates and the compilers have generated decently performing code for ages now. dmd is the only stupid compiler which cannot inline e.g. expression templates for matrix operations.
