fredemmott / bindline

C++20 library for composing functions
https://bindline.fredemmott.com/
MIT License
4 stars 0 forks source link

Test with ASAN on Windows when Clang 19 is available #19

Open fredemmott opened 3 months ago

fredemmott commented 3 months ago

Currently hitting:

error: cannot make section .ASAN$GL associative with sectionless symbol ?id@?$collate@D@std@@2V0locale@2@A

While the headers do not use locales, this could be caused by usage of std::format(), or by a dependency (i.e. cppwinrt, wil, or catch2)

This appears to be the same issue as https://github.com/llvm/llvm-project/issues/47294 , which is fixed by https://github.com/llvm/llvm-project/commit/3250330997cf214293a20a1d532b617d72bafb09

That commit is in the LLVM 19 release candidates, but not yet in any stable version

This issue is a followup to #18

fredemmott commented 3 months ago

MSVC will at least not be fully tested with ASAN, as MSVC does not support ASAN with coroutines:

https://learn.microsoft.com/en-us/cpp/sanitizers/asan-known-issues?view=msvc-170

fredemmott commented 1 month ago

All tests pass with ASAN under Clang 19.1 on Windows locally; not yet added to CI because Clang 19 isn't yet available in the windows-latest github actions runner.