This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

C++ PATCH to remove unnecessary LAMBDA_EXPR fields


The explicit return type for a lambda is only used during parsing, so
we can track it in a local variable.  Later on we can look at the
actual return type of the function.

Since tree_lambda_expr is typed, and the type of a lambda-expression
is the closure, we can use TREE_TYPE for the closure instead of an
additional field.

Tested x86_64-pc-linux-gnu, applying to trunk.

Attachment: lambda-fields.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]