Static src analysis of LibreOffice

Stephan Bergmann sbergman at redhat.com
Mon Aug 6 23:57:13 PDT 2012


On 08/06/2012 09:57 AM, John Smith wrote:
> I submitted a bug report : http://llvm.org/bugs/show_bug.cgi?id=13530

Hm, -std=gnu++11 should be disabled for Clang on Fedora 17 (i.e., 
against GCC 4.7 headers) in LO due to 
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=85b35ac289f661f64cdddd145deaf419f61f5d4c> 
"Detect failing Clang with GCC 4.7 headers and --std=gnu++0x scenarios."

I had originally designed that changeset when using a home-built "clang 
version 3.1 (tags/RELEASE_31/final 160361)" (where I stumbled over the 
problem in some C++ code that included <vector>, so I used that in the 
check).  From your bug I see you are using a "clang version 3.2 (trunk 
161295)," so I now retried with a fresh home-built Clang trunk ("clang 
version 3.2 (trunk 161398)"), and both of my Clang versions consistently 
fail to compile both

   #include <vector>

and

   #include <iostream>

(in each case choking on "use of undeclared identifier '__float128'").

So I am not sure why your LO build tries to use --std=gnu++0x at all.

Stephan


More information about the LibreOffice mailing list