[cfe-commits] r140427 - in /cfe/trunk: lib/Parse/ParseCXXInlineMethods.cpp test/Parser/cxx-member-init-missing-paren-crash.cpp

Douglas Gregor dgregor at apple.com
Fri Sep 23 16:07:44 PDT 2011


On Sep 23, 2011, at 3:39 PM, Matt Beaumont-Gay wrote:

> Author: matthewbg
> Date: Fri Sep 23 17:39:23 2011
> New Revision: 140427
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=140427&view=rev
> Log:
> Fix a crash-on-invalid.
> 
> The token stream was not getting properly reset when leaving
> ParseLexedMethodDef in some error cases. In the testcase, that caused later
> accesses to the token stream to touch memory which had been freed as we
> finished parsing the class definition. 

Very nice! I have a few bugs on my plate that you may have just fixed :)

	- Doug



More information about the cfe-commits mailing list