+/// parse_literal_expr forget to consume the token, so parser get
+/// very confused.
+static int check3(std::ostream& err_str)
+{
+ const std::string srep("5-(2*I)/3");
+ parser reader;
+ ex e = reader(srep);
+ ex g = numeric(5) - (numeric(2)*I)/3;
+ ex d = (e - g).expand();
+ if (!d.is_zero()) {
+ err_str << "\"" << srep << "\" was misparsed as \""
+ << e << "\"" << std::endl;
+ return 1;
+ }
+ return 0;
+}
+