stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Far...@kyiv.vdiweb.com>
Subject Infinity loop in locale utility
Date Mon, 21 Aug 2006 17:29:09 GMT
  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.

Farid.

Mime
View raw message