http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49528
Jason Merrill <jason at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|g++ fails to destroy |[4.6/4.7 regression] g++ |temporary object when |fails to destroy temporary |subobject is used to |object when subobject is |initialize a reference |used to initialize a | |reference --- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-25 03:34:55 UTC --- Hmm, looks like this worked in 4.5.