[llvm-dev] C++17 and clang-cl leads to error with wmemchr

41 views
Skip to first unread message

Tobias Hieta via llvm-dev

unread,
Oct 19, 2020, 12:55:34 PM10/19/20
to llvm-dev
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. 

Reid Kleckner via llvm-dev

unread,
Oct 22, 2020, 6:13:22 PM10/22/20
to Tobias Hieta, llvm-dev
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.

_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Reply all
Reply to author
Forward
0 new messages