Boo
  1. Boo
  2. BOO-301

Infinite loop when breaking in a while loop after a nested for loop

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.5
    • Fix Version/s: 0.7
    • Component/s: Compiler, Emitter
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The following Boo code generates an infinite loop. Leaving the for loop works fine.

      while true:
      for i in range(2):
      pass
      break

        Activity

        Hide
        Edwin de Jonge added a comment -

        I lost my tabs in my example, so here with explicit tabbing (\t == tab)

        while true:
        \tfor i in range(2):
        \t\tpass
        \tbreak

        Show
        Edwin de Jonge added a comment - I lost my tabs in my example, so here with explicit tabbing (\t == tab) while true: \tfor i in range(2): \t\tpass \tbreak
        Hide
        Rodrigo B. de Oliveira added a comment -

        wow, that was nasty. thanks for the report!

        Show
        Rodrigo B. de Oliveira added a comment - wow, that was nasty. thanks for the report!

          People

          • Assignee:
            Rodrigo B. de Oliveira
            Reporter:
            Edwin de Jonge
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: