[llvm-bugs] [Bug 48081] New: always fatal error (no such file or directory) for mingw (x86_64-w64-mingw32-gcc-8 (GCC) 8.3-win32 20190406)
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 4 23:00:28 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48081
Bug ID: 48081
Summary: always fatal error (no such file or directory) for
mingw (x86_64-w64-mingw32-gcc-8 (GCC) 8.3-win32
20190406)
Product: clang
Version: unspecified
Hardware: PC
OS: Windows 2000
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: info at ustchcs.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
HeaderSearch.cpp (getFileAndSuggestModule) compares std::error_code from
different libraries which has portability issues. We observed on mingw
(x86_64-w64-mingw32-gcc-8 (GCC) 8.3-win32 20190406) this comparison is always
true when compiled as shared libraries. The std::error_category is assumed to
be singleton and the comparison relies on the unique address but it does not
always hold.
The possible fix is avoiding this kind of comparison or fallback to value
comparing and error_category's name comparing.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201105/133ca47d/attachment.html>
More information about the llvm-bugs
mailing list