diff options
author | Jason Merrill <jason@redhat.com> | 2018-11-12 23:34:59 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-11-12 23:34:59 -0500 |
commit | 7de37c97b4031ba61c867cf6fadf63916c666894 (patch) | |
tree | fdac1a45bf4f122160441c7d94517023f003fdf0 /gcc/ada/gcc-interface/misc.c | |
parent | 16e723e600a62428b8ed6ab414931ec7a78aceee (diff) | |
download | gcc-7de37c97b4031ba61c867cf6fadf63916c666894.zip gcc-7de37c97b4031ba61c867cf6fadf63916c666894.tar.gz gcc-7de37c97b4031ba61c867cf6fadf63916c666894.tar.bz2 |
Implement P0780R2, pack expansion in lambda init-capture.
Mostly this was straightforward; the tricky bit was finding, in the
instantiation, the set of capture proxies built when instantiating the
init-capture. The comment in lookup_init_capture_pack goes into detail.
* parser.c (cp_parser_lambda_introducer): Parse pack init-capture.
* pt.c (tsubst_pack_expansion): Handle init-capture packs.
(lookup_init_capture_pack): New.
(tsubst_expr) [DECL_EXPR]: Use it.
(tsubst_lambda_expr): Remember field pack expansions for
init-captures.
From-SVN: r266052
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
0 files changed, 0 insertions, 0 deletions