From: Paul Eggert Date: Mon, 12 Aug 2002 15:04:54 +0000 (+0000) Subject: Fix comment about `$$ = $1': it can copy garbage. X-Git-Tag: BISON-1_49b~4 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/accea6db6873a635e119c81c14f738678b1b5ee6?ds=inline Fix comment about `$$ = $1': it can copy garbage. --- diff --git a/data/yacc.c b/data/yacc.c index 5b5da3c5..b57db164 100644 --- a/data/yacc.c +++ b/data/yacc.c @@ -1044,8 +1044,8 @@ yyreduce: /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. - Otherwise, the following line sets YYVAL to the semantic value of - the lookahead token. This behavior is undocumented and Bison + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */