From 856c79ea8d01c8094a6db7cb80de53303bed3e08 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 26 Feb 2018 14:58:47 +0000 Subject: [PATCH] lambda.c (build_capture_proxy): Define static. 2018-02-26 Paolo Carlini * lambda.c (build_capture_proxy): Define static. * cp-tree.h (build_capture_proxy): Remove. From-SVN: r257990 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/cp-tree.h | 1 - gcc/cp/lambda.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d824175aafc..217bc72ac23 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2018-02-26 Paolo Carlini + + * lambda.c (build_capture_proxy): Define static. + * cp-tree.h (build_capture_proxy): Remove. + 2018-02-26 Marek Polacek PR c++/84537 diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 04c7b7ce3a9..aef022fb7b5 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -6890,7 +6890,6 @@ extern tree lambda_function (tree); extern void apply_deduced_return_type (tree, tree); extern tree add_capture (tree, tree, tree, bool, bool); extern tree add_default_capture (tree, tree, tree); -extern tree build_capture_proxy (tree, tree); extern void insert_capture_proxy (tree); extern void insert_pending_capture_proxies (void); extern bool is_capture_proxy (tree); diff --git a/gcc/cp/lambda.c b/gcc/cp/lambda.c index a0a80dfde5c..6a798266f12 100644 --- a/gcc/cp/lambda.c +++ b/gcc/cp/lambda.c @@ -388,7 +388,7 @@ lambda_proxy_type (tree ref) inside the operator(), build a placeholder var for future lookups and debugging. */ -tree +static tree build_capture_proxy (tree member, tree init) { tree var, object, fn, closure, name, lam, type; -- 2.30.2