<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - _Static_assert(.1 == .1, ""); won't compile"
   href="https://bugs.llvm.org/show_bug.cgi?id=42295">bug 42295</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>INVALID
           </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 INVALID - _Static_assert(.1 == .1, ""); won't compile"
   href="https://bugs.llvm.org/show_bug.cgi?id=42295#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - _Static_assert(.1 == .1, ""); won't compile"
   href="https://bugs.llvm.org/show_bug.cgi?id=42295">bug 42295</a>
              from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
        <pre>C11 6.7.10/3: "The constant expression shall be an integer constant
expression."

C11 6.6/6: "117)An integer constant expression shall have integer type and
shall only have operands that are integer constants, enumeration constants,
character constants, sizeof expressions whose results are integer constants,
_Alignof expressions, and floating constants that are the immediate operands of
casts. Cast operators in an integer constant expression shall only convert
arithmetic types to integer types, except as part of an operand to the sizeof
or _Alignof operator."

So Clang is correct to reject 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>