semantics.c
257 KB
-
re PR c++/50437 ([C++0x] [4.7 regression] ICE for trivial use of lambda in template function) · 0e81aa85
PR c++/50437 * cp-tree.h (struct tree_lambda_expr): Add closure field. (LAMBDA_EXPR_CLOSURE): New. * pt.c (tsubst_copy_and_build) [LAMBDA_EXPR]: Likewise. * semantics.c (build_lambda_object): Use it instead of TREE_TYPE. (begin_lambda_type, lambda_function, add_capture): Likewise. (add_default_capture, lambda_expr_this_capture): Likewise. From-SVN: r179944
Jason Merrill committed