http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55935
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-01-11 10:03:09 UTC --- Created attachment 29143 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29143 gcc48-pr55935.patch Or alternative patch that ensures in the FE there are no locations in the ctor expressions, and just unshare_expr in the middle-end. But I tend to prefer the other patch.