c++: ts_lambda is not needed
Nathan Sidwell
nathan@acm.org
Mon Sep 21 18:52:52 GMT 2020
I've been forced[*] to look at the bits of name-lookup I ran away from
when reimplementing namespace-scope lookup at the beginning of this
modules project. Here's the first change in an expected series.
We don't need ts_lambda, as IDENTIFIER_LAMBDA_P is sufficient. Killed
thusly.
gcc/cp/
* decl.c (xref_tag_1): Use IDENTIFIER_LAMBDA_P to detect lambdas.
* lambda.c (begin_lambda_type): Use ts_current to push the tag.
* name-lookup.h (enum tag_scope): Drop ts_lambda.
pushed to trunk.
nathan
[*] I can only blame myself :)
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ts-lam-del.diff
Type: text/x-patch
Size: 2887 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200921/d5cc7666/attachment.bin>
More information about the Gcc-patches
mailing list