<div dir="ltr">On Thu, Feb 28, 2013 at 11:36 AM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The C++03 standard does "~ios::failbit" in <a href="http://27.6.1.3/22" target="_blank">27.6.1.3/22</a>, which suggests it's valid and clang is wrong.<br>

<br>
Is this a false positive?<br></blockquote><div><br></div><div style>I don't think so. Enum values are only defined for the number of bits needed to represent the type's member values, so if 'x' is a defined iostate value, then 'x & ~ios::failbit' results in a valid iostate value, but ~ios::failbit is not itself a valid iostate value.</div>
<div style><br></div><div style>-Joe</div></div></div></div>