<div dir="ltr">Friendly ping.</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/25 Serge Pavlov <span dir="ltr"><<a href="mailto:sepavloff@gmail.com" target="_blank">sepavloff@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">sepavloff added you to the CC list for the revision "Fix to PR8880 (clang dies processing a for loop).".<br>
<div class="HOEnZb"><div class="h5"><br>
Due to statement expressions supported as GCC extension, it is possible<br>
to put 'break' or 'continue' into a loop/switch statement but outside<br>
its body, for example:<br>
<br>
    for ( ; ({ if (first) { first = 0; continue; } 0; }); )<br>
<br>
Such usage must be diagnosed as an error, GCC rejects it.<br>
To recognize such patterns flags BreakScope and ContinueScope are<br>
temporarily turned off while parsing condition expression.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D2018" target="_blank">http://llvm-reviews.chandlerc.com/D2018</a><br>
<br>
Files:<br>
  include/clang/Basic/DiagnosticSemaKinds.td<br>
  include/clang/Parse/Parser.h<br>
  include/clang/Sema/Scope.h<br>
  lib/Parse/ParseStmt.cpp<br>
  lib/Parse/Parser.cpp<br>
  lib/Sema/Scope.cpp<br>
  test/Parser/bad-control.c<br>
  test/Sema/statements.c<br>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks,<br>--Serge<br>
</div>