Tobias Hieta via llvm-dev
2020-Oct-19 16:55 UTC
[llvm-dev] C++17 and clang-cl leads to error with wmemchr
Hello. We are trying to adopt clang-cl on windows and migrate to C++17, but that configuration leads to the error described in this bug: https://bugs.llvm.org/show_bug.cgi?id=41226 Does anyone know what can be done to fix this? Either in LLVM or in my code. I am happy to try to provide a patch but I don't exactly understand what's going wrong. Thanks, Tobias. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201019/5560ff00/attachment.html>
Reid Kleckner via llvm-dev
2020-Oct-22 22:13 UTC
[llvm-dev] C++17 and clang-cl leads to error with wmemchr
I read through the issue again, and I think this isn't as bad as I thought it was last year. I responded on the bug ( https://bugs.llvm.org/show_bug.cgi?id=41226#c16). I think the solution is going to be to call MarkFunctionReferenced (ODR use) for all the builtins that MSVC doesn't provide out of line definitions for. On Mon, Oct 19, 2020 at 9:55 AM Tobias Hieta via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello. > > We are trying to adopt clang-cl on windows and migrate to C++17, but that > configuration leads to the error described in this bug: > https://bugs.llvm.org/show_bug.cgi?id=41226 > > Does anyone know what can be done to fix this? Either in LLVM or in my > code. I am happy to try to provide a patch but I don't exactly understand > what's going wrong. > > Thanks, > Tobias. > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201022/24588813/attachment.html>