<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jonathan.sauer@gmx.de" title="jonathan.sauer@gmx.de">jonathan.sauer@gmx.de</a>
</span> changed
              <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Warn on possibly unintended non-shadowing in lambda init-capture"
   href="http://llvm.org/bugs/show_bug.cgi?id=21110">bug 21110</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>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>jonathan.sauer@gmx.de
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Component</td>
           <td>C++
           </td>
           <td>C++1y
           </td>
         </tr>

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

         <tr>
           <td style="text-align:right;">Summary</td>
           <td>Stop -Wshadow from catching obviously intended shadowing
           </td>
           <td>Warn on possibly unintended non-shadowing in lambda init-capture
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Warn on possibly unintended non-shadowing in lambda init-capture"
   href="http://llvm.org/bugs/show_bug.cgi?id=21110#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED --- - Warn on possibly unintended non-shadowing in lambda init-capture"
   href="http://llvm.org/bugs/show_bug.cgi?id=21110">bug 21110</a>
              from <span class="vcard"><a class="email" href="mailto:jonathan.sauer@gmx.de" title="jonathan.sauer@gmx.de">jonathan.sauer@gmx.de</a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=21110#c1">comment #1</a>)
This part doesn't seem to be covered by <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Wshadow results in (correct, but unhelpful) warning with constructor parameter having the name of data member"
   href="show_bug.cgi?id=16088">bug 16088</a>, though:

<span class="quote">>Of course there are times when the a lambda's captures' shadowing might be >problematic and a warning could be appropriate:</span >
>
<span class="quote">>    int i, j;
>    [&i = j] { // use i...? }</span >

Here clang could generate a warning that the init-capture "i" is initialized
with local variable "j" when most likely be local variable "i" should be used.
I.e. warn because the init-capture "i" *does not* shadow local variable "i".</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>