From 2cd8d506c4c4ffac3b47e2fe55c94de35e8de0f7 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Fri, 17 Jun 2011 16:07:33 -0400 Subject: [PATCH] cp-tree.h (struct tree_lambda_expr): Change common to typed. * cp-tree.h (struct tree_lambda_expr): Change common to typed. Move non-pointers to end of struct. From-SVN: r175155 --- gcc/cp/ChangeLog | 3 +++ gcc/cp/cp-tree.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 81b332de847..e90d12da42c 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,8 @@ 2011-06-17 Jason Merrill + * cp-tree.h (struct tree_lambda_expr): Change common to typed. + Move non-pointers to end of struct. + * pt.c (tsubst_decl): Handle DECL_VALUE_EXPR on reference. * decl.c (check_initializer): Handle DECL_VALUE_EXPR_P. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index ff8b2dc121e..ee303fec883 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -662,13 +662,13 @@ enum cp_lambda_default_capture_mode_type { struct GTY (()) tree_lambda_expr { - struct tree_common common; - location_t locus; - enum cp_lambda_default_capture_mode_type default_capture_mode; + struct tree_typed typed; tree capture_list; tree this_capture; tree return_type; tree extra_scope; + location_t locus; + enum cp_lambda_default_capture_mode_type default_capture_mode; int discriminator; }; -- 2.30.2