<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 15, 2014 at 3:51 PM, Robinson, Paul <span dir="ltr"><<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank">Paul_Robinson@playstation.sony.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've seen a difference in whether some fixits are produced, recently<br>
(i.e. sometime between r222093 and r222640).  Mainly I want to know<br>
whether it's intentional, given the recent changes to fixit handling<br>
(which I didn't really pay much attention to).  If it's intentional,<br>
cool, I'll just update my tests; but if it isn't, then I can file a<br>
bug so somebody can look into it.<br>
<br>
Given the following source:<br>
<br>
namespace std {<br>
  void *junk();<br>
};<br>
int main() {<br>
  delete junk;<br>
  return 0;<br>
}<br>
<br>
This used to get an error with a fixit:<br>
<br>
try.cpp:8:10: error: use of undeclared identifier 'junk'; did you mean<br>
      'std::junk'?<br>
  delete junk;<br>
         ^~~~<br>
         std::junk<br>
try.cpp:4:9: note: 'std::junk' declared here<br>
  void *junk();<br>
        ^<br>
try.cpp:8:3: error: cannot delete expression of type 'void *()'<br>
  delete junk;<br>
  ^      ~~~~<br>
2 errors generated.<br>
<br>
<br>
Now it doesn't:<br>
<br>
try.cpp:8:10: error: use of undeclared identifier 'junk'<br>
  delete junk;<br>
         ^<br>
1 error generated.</blockquote><div><br></div><div>This is intentional. Note that the old fixit was wrong. We now try to only issue fixits if they don't result in further errors. </div></div></div></div>