<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Recent commit to RawStringLiteral.cpp breaks compilation with Clang-9 and GCC-9.1"
   href="https://bugs.llvm.org/show_bug.cgi?id=42007">42007</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Recent commit to RawStringLiteral.cpp breaks compilation with Clang-9 and GCC-9.1
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang-tools-extra
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>clangd
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mike@fireburn.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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: <a href="https://reviews.llvm.org/D62151">https://reviews.llvm.org/D62151</a>

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)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>