<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 - Inconsistent narrowing errors"
   href="https://bugs.llvm.org/show_bug.cgi?id=35886">bug 35886</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;">Status</td>
           <td>REOPENED
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>richard-llvm@metafoo.co.uk
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Inconsistent narrowing errors"
   href="https://bugs.llvm.org/show_bug.cgi?id=35886#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - Inconsistent narrowing errors"
   href="https://bugs.llvm.org/show_bug.cgi?id=35886">bug 35886</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>(In reply to Shane from <a href="show_bug.cgi?id=35886#c2">comment #2</a>)
<span class="quote">> While the compiler defaults used in that particular build are the reason for
> seeing the results I reported as errors and not warnings, it doesn't change
> the inconsistent results that I have reported.</span >

Whether a conversion is or is not narrowing, and whether narrowing is permitted
or ill-formed, is specified by the C++ standard. You're not alone in finding it
both to be inconsistent and to reject completely reasonable code; that's why
Clang provides a flag to turn off the error.

For a description of the rules, see the standard text at
<a href="http://eel.is/c++draft/dcl.init.list#7">http://eel.is/c++draft/dcl.init.list#7</a> or the explanation at
<a href="http://en.cppreference.com/w/cpp/language/list_initialization">http://en.cppreference.com/w/cpp/language/list_initialization</a></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>