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: unassignedclangb...@nondot.org
          Reporter: i...@ustchcs.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to