<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - lldb 3.6.0 fails to compile with gcc 4.9"
   href="https://llvm.org/bugs/show_bug.cgi?id=23051">23051</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>lldb 3.6.0 fails to compile with gcc 4.9
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </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>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>rodrigc@freebsd.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14109" name="attach_14109" title="patch">attachment 14109</a> <a href="attachment.cgi?id=14109&action=edit" title="patch">[details]</a></span>
patch

I'm part of the <a href="https://jenkins.freebsd.org">https://jenkins.freebsd.org</a> continuous integration team.

I used this script:
<a href="https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-build.sh">https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/cross-build.sh</a>

to cross-build FreeBSD-CURRENT with gcc 4.9.

While building, I encountered this compilation problem with lldb:

/opt2/branches/head/lib/clang/liblldbCore/../../../contrib/llvm/tools/lldb/source/Core/Mangled.cpp:4889:20:
error: declaration of 'typedef using String = class std::__1::basic_string
<char, std::__1::char_traits<char>, {anonymous}::malloc_alloc<char> >
{anonymous}::Db::Stri
ng' [-fpermissive]
     typedef String String;
                    ^
/opt2/branches/head/lib/clang/liblldbCore/../../../contrib/llvm/tools/lldb/source/Core/Mangled.cpp:4868:83:
error: changes meaning of 'String' from 'using String = class
std::__1::basic_string<char, std::__1::char_traits<char>,
{anonymous}::malloc_alloc<char> >' [-fpermissive]
 using String = std::basic_string<char, std::char_traits<char>,
malloc_alloc<char>>;
                                                                               
   ^

The attached patch fixed it for me.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>