Farid Zaripov wrote:
  I got the infinity loop in locale utility.

  collate.cpp, void Def::preprocess_collate ():

------------------
    while (true) {
        // fetch next token
        next = scanner_.next_token();
switch (next.token) {
        case Scanner::tok_end:

        ...

        default:
            break;
        }
    }
------------------

  next.token == Scanner::tok_end_tokens; in switch block
case Scanner::tok_end_tokens is not present; break statement
at default label doesn't breaks the while (true) loop.

Hmm, that sure looks like a bug. It would be nice to have a test
case although I wonder if the input required to trigger the endless
loop might need to be invalid?

Could you please open an issue in Jira for this?

Martin

Reply via email to