[Bug objc/103639] [REGRESSION] GCC 11.2 (or even earlier) breaks switch case with break in fast enumeration loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 Iain Sandoe changed: What|Removed |Added Status|WAITING |NEW --- Comment #6 from Iain Sandoe --- confirmed on x86-64-darwin18 - the gimple is wrong out of the FE, so it seems a FE or gimplification bug.
[Bug objc/103639] [REGRESSION] GCC 11.2 (or even earlier) breaks switch case with break in fast enumeration loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org, ||iains at gcc dot gnu.org, ||mikestump at comcast dot net --- Comment #5 from Eric Gallager --- cc-ing objc maintainers
[Bug objc/103639] [REGRESSION] GCC 11.2 (or even earlier) breaks switch case with break in fast enumeration loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 js-gcc at webkeks dot org changed: What|Removed |Added Keywords|wrong-code | --- Comment #4 from js-gcc at webkeks dot org --- Sure: #import int main() { OFArray *array = [OFArray arrayWithObjects: @"a", @"b", nil]; int someVar = 0; for (id object in array) { switch (someVar) { case 0: OFLog(@"%@", object); break; } OFLog(@"foo"); } return 0; } Sorry, but something free-standing isn't possible as you need a collection object. The same code should work with GNUstep by just replacing OF with NS.
[Bug objc/103639] [REGRESSION] GCC 11.2 (or even earlier) breaks switch case with break in fast enumeration loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed||2021-12-09 Status|UNCONFIRMED |WAITING --- Comment #3 from Andrew Pinski --- Do you have a full testcase?
[Bug objc/103639] [REGRESSION] GCC 11.2 (or even earlier) breaks switch case with break in fast enumeration loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 --- Comment #2 from js-gcc at webkeks dot org --- Oh, forgot to clarify in the example: Assume more than 1 object in the collection and someVar to be 0.
[Bug objc/103639] [REGRESSION] GCC 11.2 (or even earlier) breaks switch case with break in fast enumeration loop
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103639 js-gcc at webkeks dot org changed: What|Removed |Added CC||js-gcc at webkeks dot org --- Comment #1 from js-gcc at webkeks dot org --- Can confirm the same happens with 11.1.0. 10.2 seems to be fine.