<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 - build error on on Centos 7 with gcc version 4.8.2"
   href="https://bugs.llvm.org/show_bug.cgi?id=39505">39505</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>build error on on Centos 7 with gcc version 4.8.2
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang-tools-extra
          </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>release blocker
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>clangd
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>chantry.xavier@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

I am trying to build clang 7.0.0 :
4c946b7981db07c0108f8ea6c539a5611f754923 in llvm
a007b984aefa2192b58a534ce3087f43cd21fb27 in clang
a14a64836c6c220a6b966a7269a254557b3f8749 in extra

No problem on Debian stable with gcc 6.3.0.

However on Centos 7 with gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) I 
had the following error :

llvm_7.0/tools/clang/tools/extra/clangd/CodeComplete.cpp: In member 
function â€˜const string* 
clang::clangd::{anonymous}::CodeCompletionBuilder::onlyValue() const’:
llvm_7.0/tools/clang/tools/extra/clangd/CodeComplete.cpp:365:24: error: 
taking address of temporary [-fpermissive]
      return &(B->*Member);
                         ^

Any ideas ?

I know clang 5 built fine but never tried to build clang 6 on centos 7, 
so the problem could be in clang 6 as well.

Cheers,
Xavier</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>