Branch: Tag:

2008-05-30

2008-05-30 20:12:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bugfix for chained inherit references.

Rev: src/language.yacc:1.428

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: language.yacc,v 1.427 2008/05/30 17:23:44 grubba Exp $ + || $Id: language.yacc,v 1.428 2008/05/30 20:12:26 grubba Exp $   */      %pure_parser
3836:    }    | inherit_specifier TOK_IDENTIFIER TOK_COLON_COLON    { -  if ($1 >= 0) { +     int e = 0;   #if 0    /* FIXME: The inherit modifiers aren't kept. */
3858:    $$ = -1;    } else {    /* We know stuff about the inherit structure... */ +  if ($1 >= 0) {    $$ = e + $1; -  +  } else { +  $$ = e;    }    }    free_node($2);