Branch: Tag:

2008-05-03

2008-05-03 15:51:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Simulate inherits in second pass.
Fixes LysLysKOM 16472935.

Rev: src/compilation.h:1.36
Rev: src/language.yacc:1.417
Rev: src/program.c:1.684
Rev: src/testsuite.in:1.803

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.416 2008/04/26 19:04:26 grubba Exp $ + || $Id: language.yacc,v 1.417 2008/05/03 15:51:50 grubba Exp $   */      %pure_parser
501:    if (($1 & ID_EXTERN) && (Pike_compiler->compiler_pass == 1)) {    yywarning("Extern declared inherit.");    } -  if($3 && !(Pike_compiler->new_program->flags & PROGRAM_PASS_1_DONE)) +  if($3)    {    struct pike_string *s=Pike_sp[-1].u.string;    if($4) s=$4->u.sval.u.string;