<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 2, 2010, at 8:19 AM, Gonsolo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi!<br><br>Is this correct (SemaExpr.cpp, line 4763)?<br><br>      // If we are allowing lax vector conversions, and LHS and RHS are both<br>      // vectors, the total size only needs to be the same. This is a bitcast;<br>      // no bits are changed but the result type is different.<br>      if (getLangOptions().LaxVectorConversions &&<br>         (Context.getTypeSize(lhsType) == Context.getTypeSize(rhsType)))<br>        return IncompatibleVectors;<br><br>I thought that if we are in "lax" mode and sizes match they are compatible.<br></div></blockquote><div><br></div><div>Yes, but we still seem to warn about it:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(51, 89, 93); "><span style="color: #000000">  </span><span style="color: #b930a1">case</span><span style="color: #000000"> </span>IncompatibleVectors<span style="color: #000000">:</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(62, 33, 127); "><span style="color: #000000">    DiagKind = </span>diag<span style="color: #000000">::</span>warn_incompatible_vectors<span style="color: #000000">;</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">    <span style="color: #b930a1">break</span>;</div><div><br></div></div></div><span class="Apple-tab-span" style="white-space:pre">   </span>- Doug</body></html>