incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: Infinity loop in locale utility
Date Mon, 21 Aug 2006 22:44:32 GMT
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

Mime
View raw message