<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 - InterpStack.cpp fails to build with gcc after r371834"
   href="https://bugs.llvm.org/show_bug.cgi?id=43362">43362</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>InterpStack.cpp fails to build with gcc after r371834
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>lukebenes@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>After
<a href="http://llvm.org/viewvc/llvm-project?view=revision&revision=371834">http://llvm.org/viewvc/llvm-project?view=revision&revision=371834</a>

I cannot build clang with recent builds of gcc. It is failing with the
following errors:

/clang/lib/AST/Interp/InterpStack.cpp:35:31: note: ‘malloc’ is defined in
header ‘<cstdlib>’; did you forget to ‘#include <cstdlib>’?
/clang/lib/AST/Interp/InterpStack.cpp: In member function ‘void
clang::interp::InterpStack::shrink(size_t)’:
/clang/lib/AST/Interp/InterpStack.cpp:67:7: error: ‘free’ was not declared in
this scope
   67 |       free(Chunk->Next);
      |       ^~~~
/clang/lib/AST/Interp/InterpStack.cpp:67:7: note: ‘free’ is defined in header
‘<cstdlib>’; did you forget to ‘#include <cstdlib>’?
tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/build.make:1286: recipe for
target
'tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/Interp/InterpStack.cpp.o'
failed
make[3]: ***
[tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/Interp/InterpStack.cpp.o]
Error 1
CMakeFiles/Makefile2:24317: recipe for target
'tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/all' failed
make[2]: *** [tools/clang/lib/AST/CMakeFiles/obj.clangAST.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....</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>