<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - lib/xray/tests/unit/xray_fdr_log_printer_tool.cc should include <functional>"
   href="https://bugs.llvm.org/show_bug.cgi?id=32313">32313</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lib/xray/tests/unit/xray_fdr_log_printer_tool.cc should include <functional>
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>XRay
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Compiler instrumentation
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dberris@google.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>octoploid@yandex.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>building with gcc trunk shows:

/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:
In function ‘int main(int, char**)’:
/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:284:30:
error: ‘function’ is not a member of ‘std’
   std::map<std::string, std::function<void(std::istream &)>>
TopLevelRecordMap;
                              ^~~~~~~~
/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:284:30:
note: suggested alternative: ‘is_function’
   std::map<std::string, std::function<void(std::istream &)>>
TopLevelRecordMap;
                              ^~~~~~~~
                              is_function
/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:284:30:
error: ‘function’ is not a member of ‘std’
/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:284:30:
note: suggested alternative: ‘is_function’
   std::map<std::string, std::function<void(std::istream &)>>
TopLevelRecordMap;
                              ^~~~~~~~
                              is_function
/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:284:59:
error: template argument 2 is invalid
   std::map<std::string, std::function<void(std::istream &)>>
TopLevelRecordMap;
                                                           ^~
/home/markus/llvm/projects/compiler-rt/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc:284:59:
error: template argument 4 is invalid
...

diff --git a/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc
b/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc
index a4d05f200de5..6e209809e346 100644
--- a/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc
+++ b/lib/xray/tests/unit/xray_fdr_log_printer_tool.cc
@@ -17,6 +17,7 @@
 #include <algorithm>
 #include <array>
 #include <cstdlib>
+#include <functional>
 #include <iostream>
 #include <map>
 #include <sstream>

fixes the issue.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>