http://llvm.org/bugs/show_bug.cgi?id=18793

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Richard Smith <[email protected]> ---
Yikes, this was a bug in the way we performed lookahead in the lexer.
Specifically, if we're in caching lex mode, and then we call EnterTokenStream,
and then we then perform a lookahead, we have a broken lexer state (we only
have one token buffer and we can't tell which layer of the lexer each token
belongs to).

What goes wrong in this particular case is that the lookahead step consumes and
pops the EnterTokenStream'd buffer, and we then re-enter the caching lex mode
from within itself, and the inner caching lex violates the assumptions of the
outer one.

Fixed in r218333.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to