[antlr-interest] ANTLR C++ problem on AIX?
Bryan Ewbank
ewbank at gmail.com
Mon May 16 08:30:37 PDT 2005
When using C++ mode, has anyone else seen problems with xlC on AIX platforms?
We are getting segv's when a user-defined function that throws an
exception is called from within a #() expression in a user-defined
action; moving the function call out of the #() resolves/sidesteps the
problem.
Thanks for any comments,
- Bryan
What we are seeing:
---------
platform: rs6k64-ibm-aix5.1 architecture
compiler: xlC -- VisualAge C++ Professional / C for AIX Compiler, Version 6
problem: segv's; resolved by code rewrite...
// SEGVs happen when constructNode() throws an exception
RefTreeNode expr = #( e, #( a, m, constructNode(v) ) );
// Moving the function that can throw errors out of the ANTLR construction
// bypasses the problem
RefTreeNode mv = constructNode(v);
RefTreeNode expr = #( e, #( a, m, mv ) );
More information about the antlr-interest
mailing list