[antlr-interest] A bug in C++ run-time
Ric Klaren
klaren at cs.utwente.nl
Thu Oct 14 06:45:07 PDT 2004
On Thu, Oct 14, 2004 at 12:54:27PM -0000, Sergey Bogdanov wrote:
> I was debugging a problem with my own Token class with overloaded
> 'getToken()' member function and found that there is a problem in
> TokenBuffer::LA() (TokenBuffer.cpp:58). Instead of calling to
> getType() the function used direct access to the 'type' field of a
> Token. I think that this is a bug in antlr 2.7.4.
>
> I made the 'type' member of the token private and replaced
> reference to the 'type' with the call to getType() and it works for
> me.
Thanks for the report & fix! It's a pretty old bug I guess, looks like copy
paste from the java runtime (it had the same bug).
Cheers,
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- j.klaren at utwente.nl ----- +31 53 4893755 ----
-----+++++*****************************************************+++++++++-------
Quidquid latine dictum sit, altum viditur.
(Whatever is said in Latin sounds profound.)
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list