http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54383 --- Comment #2 from 166291 at gmail dot com 2012-09-26 18:45:36 UTC --- Some more information is that this only seems to happen when the lambda captures variables, and it's in the global scope.