<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Allow reinterpret_cast in constant expression when -fms-compatibility is enabled"
   href="https://bugs.llvm.org/show_bug.cgi?id=17410">bug 17410</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>WONTFIX
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Allow reinterpret_cast in constant expression when -fms-compatibility is enabled"
   href="https://bugs.llvm.org/show_bug.cgi?id=17410#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED WONTFIX - Allow reinterpret_cast in constant expression when -fms-compatibility is enabled"
   href="https://bugs.llvm.org/show_bug.cgi?id=17410">bug 17410</a>
              from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
        <pre>MSVC has warned on this since 19.15: <a href="https://gcc.godbolt.org/z/ToG3o4">https://gcc.godbolt.org/z/ToG3o4</a>
<a href="https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4668?view=msvc-160">https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4668?view=msvc-160</a>
warning C4644: usage of the macro-based offsetof pattern in constant
expressions is non-standard; use offsetof defined in the C++ standard library
instead

Someone filed a similar issue with microsoft:
<a href="https://developercommunity.visualstudio.com/t/field-offset-macro-in-winnth-can-generate-c4644-an/331780">https://developercommunity.visualstudio.com/t/field-offset-macro-in-winnth-can-generate-c4644-an/331780</a>

At this point, I don't think clang needs to implement an extension for this.</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>