[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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.