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

            Bug ID: 26728
           Summary: build clang on Ubuntu 15.10 fails with invalid
                    conversion from ‘char’ to ‘const char*’ in
                    PPDirectives.cpp
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangb...@nondot.org
          Reporter: boo...@nc.rr.com
                CC: kli...@google.com, llvm-bugs@lists.llvm.org
    Classification: Unclassified

Error message:

[ 51%] Building CXX object
tools/clang/lib/Lex/CMakeFiles/clangLex.dir/PPLexerChange.cpp.o
/home/bootch/git/llvm/tools/clang/lib/Lex/PPDirectives.cpp: In member function
‘void clang::Preprocessor::HandleUserDiagnosticDirective(clang::Token&, bool)’:
/home/bootch/git/llvm/tools/clang/lib/Lex/PPDirectives.cpp:1229:47: error:
invalid conversion from ‘char’ to ‘const char*’ [-fpermissive]
   StringRef Msg = StringRef(Message).ltrim(' ');

                                               ^
Environment:

Ubuntu 15.10 (installed today)
gcc version 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2)
Using git repository cloned today from github mirror
Using build instructions here http://clang.llvm.org/get_started.html
(except not using subversion, using git from mirror.)

My analysis is that ltrim(' ') should be " "

I guess that I should use -fpermissive somewhere.

-- 
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