Skip to content

for-loops as while-loops is wrong for ranged-based for loop #528

@roe85

Description

@roe85

When using for-loops as while-loops

for (int i : {0,1}) {
  if (i == 0) continue;
}

Produces an endless loop, because the increment of ++__begin1 is skipped

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions