From bug-octave-request at bevo dot che dot wisc dot edu Mon Oct 26 08:51:48 1998 Subject: Error compiling octave-2.1.7 with egcs-1.1.b From: "John W. Eaton" To: Joao Cardoso Cc: bug-octave Date: Mon, 26 Oct 1998 08:51:27 -0600 (CST) On 26-Oct-1998, Joao Cardoso wrote: | I got the following errors when compiling octave-2.1.7 with egcs-1.1.b. | I hope that this goes in time for 2.1.8 :-) Please try the following patch. Thanks, jwe Mon Oct 26 08:41:46 1998 John W. Eaton * pt-unop.h (tree_prefix_expression): Reorder constructor args to put those with default values last. (tree_postfix_expression): Likewise. * parse.y: Change all callers. Index: parse.y =================================================================== RCS file: /home/jwe/src/master/octave/src/parse.y,v retrieving revision 1.133 diff -c -r1.133 parse.y *** parse.y 1998/10/16 18:05:31 1.133 --- parse.y 1998/10/26 14:46:17 *************** *** 1872,1878 **** // XXX FIXME XXX -- what about constant folding here? ! return new tree_prefix_expression (t, op1, l, c); } // Build a postfix expression. --- 1872,1878 ---- // XXX FIXME XXX -- what about constant folding here? ! return new tree_prefix_expression (op1, l, c, t); } // Build a postfix expression. *************** *** 1910,1916 **** // XXX FIXME XXX -- what about constant folding here? ! return new tree_postfix_expression (t, op1, l, c); } // Build an unwind-protect command. --- 1910,1916 ---- // XXX FIXME XXX -- what about constant folding here? ! return new tree_postfix_expression (op1, l, c, t); } // Build an unwind-protect command. Index: pt-unop.h =================================================================== RCS file: /home/jwe/src/master/octave/src/pt-unop.h,v retrieving revision 1.3 diff -c -r1.3 pt-unop.h *** pt-unop.h 1997/06/01 19:26:57 1.3 --- pt-unop.h 1998/10/26 14:42:49 *************** *** 85,92 **** tree_prefix_expression (int l = -1, int c = -1) : tree_unary_expression (l, c), etype (unknown) { } ! tree_prefix_expression (type t = unknown, tree_expression *e, ! int l = -1, int c = -1) : tree_unary_expression (e, l, c), etype (t) { } ~tree_prefix_expression (void) { } --- 85,92 ---- tree_prefix_expression (int l = -1, int c = -1) : tree_unary_expression (l, c), etype (unknown) { } ! tree_prefix_expression (tree_expression *e, int l = -1, int c = -1, ! type t = unknown) : tree_unary_expression (e, l, c), etype (t) { } ~tree_prefix_expression (void) { } *************** *** 135,142 **** tree_postfix_expression (int l = -1, int c = -1) : tree_unary_expression (l, c), etype (unknown) { } ! tree_postfix_expression (type t = unknown, tree_expression *e, ! int l = -1, int c = -1) : tree_unary_expression (e, l, c), etype (t) { } ~tree_postfix_expression (void) { } --- 135,142 ---- tree_postfix_expression (int l = -1, int c = -1) : tree_unary_expression (l, c), etype (unknown) { } ! tree_postfix_expression (tree_expression *e, int l = -1, int c = -1, ! type t = unknown) : tree_unary_expression (e, l, c), etype (t) { } ~tree_postfix_expression (void) { }