<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:rikka@google.com" title="Kaelyn Takata <rikka@google.com>"> <span class="fn">Kaelyn Takata</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Crash-on-invalid with a fragile combination of typo corrections and whitespace"
   href="https://llvm.org/bugs/show_bug.cgi?id=16676">bug 16676</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>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>rikka@google.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Crash-on-invalid with a fragile combination of typo corrections and whitespace"
   href="https://llvm.org/bugs/show_bug.cgi?id=16676#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Crash-on-invalid with a fragile combination of typo corrections and whitespace"
   href="https://llvm.org/bugs/show_bug.cgi?id=16676">bug 16676</a>
              from <span class="vcard"><a class="email" href="mailto:rikka@google.com" title="Kaelyn Takata <rikka@google.com>"> <span class="fn">Kaelyn Takata</span></a>
</span></b>
        <pre>This appears to be fixed. As of r236883, the example:

struct S { int i; };
struct T { S* get_s(); };
int f(S* s) {
  T t;
  return t.get_s
      .i;
}

yields:

zbugs.cc:5:12: error: reference to non-static member function must be called;
did you mean to call it with no arguments?
  return t.get_s
         ~~^~~~~
                ()
zbugs.cc:6:7: error: member reference type 'S *' is a pointer; did you mean to
use '->'?
      .i;
      ^
      ->
2 errors generated.

And the example with Nick's replacement line yields:

zbugs.cc:5:30: error: reference to non-static member function must be called;
did you mean to call it with no arguments?
  return      t       .      get_s      .i;
              ~~~~~~~~~~~~~~~^~~~~
                                  ()
zbugs.cc:5:41: error: member reference type 'S *' is a pointer; did you mean to
use '->'?
  return      t       .      get_s      .i;
              ~~~~~~~~~~~~~~~~~~~~      ^
                                        ->
2 errors generated.</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>