[llvm-bugs] [Bug 26728] New: build clang on Ubuntu 15.10 fails with invalid conversion from ‘char’ to ‘const char*’ in PPDirectives.cpp
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 24 13:31:28 PST 2016
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: unassignedclangbugs at nondot.org
Reporter: bootch at nc.rr.com
CC: klimek at google.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160224/af1ff5f0/attachment.html>
More information about the llvm-bugs
mailing list