https://bugs.llvm.org/show_bug.cgi?id=39505

            Bug ID: 39505
           Summary: build error on on Centos 7 with gcc version 4.8.2
           Product: clang-tools-extra
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: clangd
          Assignee: unassignedclangb...@nondot.org
          Reporter: chantry.xav...@gmail.com
                CC: llvm-bugs@lists.llvm.org

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to