[LLVMbugs] [Bug 12480] binutils' gold hits parser recursion limit after r152274

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 30 09:20:44 PDT 2012


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

Douglas Gregor <dgregor at apple.com> changed:

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

--- Comment #7 from Douglas Gregor <dgregor at apple.com> 2012-04-30 11:20:44 CDT ---
(In reply to comment #3)
> Created attachment 8406 [details]
> Restore paren, bracket and brace counts on TPA Revert.
> 
> Paren, bracket, and brace counts in parser can get out of order, when opening
> paren/bracket/brace tokens are consumed without consuming corresponding closing
> counterparts before reverting tentative parsing. This can lead to erroneous
> parser recursion error.
> 
> Patch restores paren, bracket and brace counts in parser when
> TentativeParsingAction is reverted.

Patch committed as r155823, thank you!

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list