http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51582
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2013-04-06 16:08:28 UTC --- Created attachment 29816 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29816 patch Here's a fix. I'm not going to apply it to the 4.6 branch because C++11 users really ought to move to a newer release, but I'm attaching it here in case it's useful to anyone.