<div dir="ltr"><br><div class="gmail_extra"><br><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:<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.<br></blockquote><div><br>As I understand it, this is intentional - we try not to suggest fixits that would produce cascading failures. Typo correction has recently been improved along those lines, to delay typo correction until the end of the full expression - thus allowing more accurate typo corrections (ones that actually make the whole expression successfully compile) & so we should see some new cases of suggestions and some cases where bad suggestions no longer appear.<br><br>- David<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
--paulr<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div></div>