[antlr-interest] Bug report; generated C(++) code inappropriately initialises non-primitive return values
Richard Thrippleton
richard.thrippleton at progress.com
Mon Mar 30 03:07:00 PDT 2009
When I have a rule of the form
"rule returns [std::vector<int> foo]
..."
the generated code for that rule will start with
"std::vector<int> foo = NULL;"
which will (obviously) not compile. I've modified the relevant .stg to
prevent it generating initialisation code for return values (declaration
only), and not encountered any issues in my grammars thus far.
Richard
More information about the antlr-interest
mailing list