pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:1557:      /* Identifier type. Value on type stack.    *    * NB: Introduces shift-reduce conflict on TOK_LOCAL_ID.    */   identifier_type: idents    {    if ($1) {    fix_type_field($1);    -  if (!pike_types_le($1->type, typeable_type_string, 0, 0) && +  if ((Pike_compiler->compiler_pass == COMPILER_PASS_LAST) && +  !pike_types_le($1->type, typeable_type_string, 0, 0) &&    (THIS_COMPILATION->lex.pragmas & ID_STRICT_TYPES)) {    yytype_report(REPORT_WARNING,    $1->current_file, $1->line_number, typeable_type_string,    $1->current_file, $1->line_number, $1->type,    0, "Invalid type.");    }    }       resolv_type($1);