------- Comment #2 from jakub at gcc dot gnu dot org 2010-07-28 11:41 ------- Created an attachment (id=21334) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21334&action=view) gcc46-pr43912.patch
Untested proof of concept patch (which handles just non-templates though). The captured vars can be printed fine in the debugger, though no testing of more complicated captures (like arrays etc.) has been done. Not sure how to handle the template case though, so not working on this anymore. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43912