------- Comment #3 from jason at gcc dot gnu dot org 2006-09-06 05:59 ------- This worked in 4.0 by accident, because of the NRV implementation I had in that release which pushed aggregate return values into the argument list of a call. This had some problems, so I later changed it to use a MODIFY_EXPR, which properly expresses what's going on, but interferes with this warning.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27371