<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - always fatal error (no such file or directory) for mingw (x86_64-w64-mingw32-gcc-8 (GCC) 8.3-win32 20190406)"
   href="https://bugs.llvm.org/show_bug.cgi?id=48081">48081</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>always fatal error (no such file or directory) for mingw (x86_64-w64-mingw32-gcc-8 (GCC) 8.3-win32 20190406)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows 2000
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>info@ustchcs.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>