[llvm-bugs] [Bug 42007] New: Recent commit to RawStringLiteral.cpp breaks compilation with Clang-9 and GCC-9.1
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri May 24 07:06:18 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=42007
Bug ID: 42007
Summary: Recent commit to RawStringLiteral.cpp breaks
compilation with Clang-9 and GCC-9.1
Product: clang-tools-extra
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: clangd
Assignee: unassignedclangbugs at nondot.org
Reporter: mike at fireburn.co.uk
CC: llvm-bugs at lists.llvm.org
The commit:
a1b5780ec17c95e9b7c550fe4184271d5520ae7a
[clangd] Add tweak to convert normal to raw string literal, when it c…
…ontains escapes.
Reviewers: ilya-biryukov
Subscribers: mgorny, MaskRay, jkorous, arphaman, kadircet, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D62151
llvm-svn: 361252
Breaks compilation when using Clang-9 or GCC-9.1
FAILED: lib64/libclangDaemonTweaks.so.9svn
: && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -O3 -march=native -pipe -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-mi
-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment
-fdiagnostics-color -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -fno-strict-aliasing -pedantic -Wno-lo
d -Wl,-z,defs -Wl,-z,nodelete -Wl,-O3 -Wl,--gc-sections -shared
-Wl,-soname,libclangDaemonTweaks.so.9svn -o lib64/libclangDaemonTweaks.so.9svn
tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDa
angd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SwapIfBranches.cpp.o
-L/usr/lib/llvm/9/lib64 -Wl,-rpath,"$ORIGIN/../lib64" lib64/libclangAST.so.9svn
lib64/libclangDaemon.so.9svn lib64/libclan
pport.so.9svn && : ESC[31;01mESC[0m environment, line 1422: Called
_cmake_ninja_src_make
tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RawStringLiteral.cpp.o:RawStringLiteral.cpp:function
clang::clangd::(anonymous namespace)::RawStringLiteral::prepare(clang::clangd
ce to 'clang::SourceManager::isBeforeInTranslationUnit(clang::SourceLocation,
clang::SourceLocation) const'
tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RawStringLiteral.cpp.o:RawStringLiteral.cpp:function
clang::clangd::(anonymous namespace)::RawStringLiteral::prepare(clang::clangd
ce to 'clang::SourceManager::getCharacterData(clang::SourceLocation, bool)
const'
collect2: error: ld returned 1 exit status
FAILED: lib64/libclangDaemonTweaks.so.9svn
: && /usr/lib/llvm/9/bin/clang++ -fPIC -O3 -pipe -flto=thin -march=native -fPIC
-fvisibility-inlines-hidden -Werror=date-time
-Werror=unguarded-availability-new -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type
-Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wstring-conversion
-fdiagnostics-color -ffunction-sections -fdata-sections -fno-common
-Woverloaded-virtual -pedantic -Wno-long-long -Wno-nested-anon-types -O3 -pipe
-flto=thin -march=native -Wl,-z,defs -Wl,-z,nodelete -Wl,-O3 -Wl,--gc-sections
-shared -Wl,-soname,libclangDaemonTweaks.so.9svn -o
lib64/libclangDaemonTweaks.so.9svn
tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/RawStringLiteral.cpp.o
tools/extra/clangd/refactor/tweaks/CMakeFiles/obj.clangDaemonTweaks.dir/SwapIfBranches.cpp.o
-Wl,-rpath,"$ORIGIN/../lib64" lib64/libclangAST.so.9svn
lib64/libclangDaemon.so.9svn lib64/libclangToolingCore.so.9svn
/usr/lib/llvm/9/lib64/libLLVMSupport.so.9svn && :
/var/tmp/portage/sys-devel/clang-9999/temp/lto-llvm-e720bc.o:RawStringLiteral.cpp:function
clang::clangd::(anonymous
namespace)::RawStringLiteral::prepare(clang::clangd::Tweak::Selection const&):
error: undefined reference to
'clang::SourceManager::isBeforeInTranslationUnit(clang::SourceLocation,
clang::SourceLocation) const'
/var/tmp/portage/sys-devel/clang-9999/temp/lto-llvm-e720bc.o:RawStringLiteral.cpp:function
clang::clangd::(anonymous
namespace)::RawStringLiteral::prepare(clang::clangd::Tweak::Selection const&):
error: undefined reference to
'clang::SourceManager::getCharacterData(clang::SourceLocation, bool*) const'
clang-9: error: linker command failed with exit code 1 (use -v to see
invocation)
--
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/20190524/06682c98/attachment-0001.html>
More information about the llvm-bugs
mailing list