[C++PATCH] Lambda names are anonymous
authorNathan Sidwell <nathan@acm.org>
Fri, 31 May 2019 13:25:46 +0000 (13:25 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 31 May 2019 13:25:46 +0000 (13:25 +0000)
commitca3edeaed691cf971ebdf7768f5d73b182c1aa07
tree70d2c9af2fdf1addd53538a38013476747599eca
parent929c046d575c273e80000310b88c24af94cc4cf8
[C++PATCH] Lambda names are anonymous

https://gcc.gnu.org/ml/gcc-patches/2019-05/msg02126.html
* cp-tree.h (IDENTIFIER_LAMBDA_P): New.
(TYPE_ANON_P): New.
(LAMBDA_TYPE_P, TYPE_UNNAMED_P):  Likewise.
(LAMBDANAME_PREFIX, LAMBDANAME_FORMAT): Delete.
(make_lambda_name): Don't declare.
* error.c (dump_aggr_type): Check for lambdas before other
anonymous names.
* lambda.c (begin_lambda_type): Use make_anon_name.
* cp-lang.c (cxx_dwarf_name): Lambda names smell anonymous.
* mangle.c (write_local_name): Likewise.
* name-lookup.c (lambda_cnt, make_lambda_name): Delete.

From-SVN: r271811
gcc/cp/ChangeLog
gcc/cp/cp-lang.c
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/lambda.c
gcc/cp/mangle.c
gcc/cp/name-lookup.c