[Bug c++/61151] [4.9/4.10 Regression] ICE with lambda

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon May 12 08:12:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61151

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
>From quick look at that change, the problem here seems to be that the patch
supposedly wanted to avoid wrapping this and does so by checking that it is a
PARM_DECL with this_identifier as name, but in this case this is not a
PARM_DECL, but build_capture_proxy created VAR_DECL instead.

So, allowing there also VAR_DECL with this_identifier fixes this, but no idea
whether it is desirable to do, and if so, whether just in lambda.c or for all
is_this_parameter uses.



More information about the Gcc-bugs mailing list