[LLVMbugs] [Bug 18793] crash on parenthesized non-type template argument

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 23 14:06:42 PDT 2014


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

Richard Smith <richard-llvm at metafoo.co.uk> changed:

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140923/0a75b366/attachment.html>


More information about the llvm-bugs mailing list