[Bug c++/43912] lambda debug info does not describe captured variables

2010-07-28 Thread jakub at gcc dot gnu dot org
--- 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

[Bug c++/43912] lambda debug info does not describe captured variables

2010-07-27 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2010-07-27 15:14 --- I've briefly looked at this. For !processing_template_decl, it shouldn't be hard to walk LAMBDA_EXPR_CAPTURE_LIST e.g. in cp_parser_lambda_expression and add copy_decl of the vars from the capture list with DECL_VALUE