lambda.c (build_capture_proxy): Define static.
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 26 Feb 2018 14:58:47 +0000 (14:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 26 Feb 2018 14:58:47 +0000 (14:58 +0000)
2018-02-26  Paolo Carlini  <paolo.carlini@oracle.com>

* lambda.c (build_capture_proxy): Define static.
* cp-tree.h (build_capture_proxy): Remove.

From-SVN: r257990

gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/lambda.c

index d824175aafc1d8bfdefb6d338350952dedc4c8c3..217bc72ac233ad8eb7b8c8e86d747ced07b6f1a2 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-26  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * lambda.c (build_capture_proxy): Define static.
+       * cp-tree.h (build_capture_proxy): Remove.
+
 2018-02-26  Marek Polacek  <polacek@redhat.com>
 
        PR c++/84537
index 04c7b7ce3a9db5f088988f688adb8dc38455f3cc..aef022fb7b5af736408b62533fd46e599a97616d 100644 (file)
@@ -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);
index a0a80dfde5c9bef0b45f3d70c6939d6761807ec3..6a798266f12d5e7f9a4e16c4263cf1136c25abcf 100644 (file)
@@ -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;