I\'m in the progress of writing a compiler for a subset of Java, using boost::spirit, for lexing and parsing. During compilation of the lexer/parser phase, the
boost::spirit
Turning optimizations on (-O1 flag) solved the problem for me.
-O1