clang 7 on centos 7

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

clang 7 on centos 7

David Blaikie via cfe-dev
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

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev