Fix comment about `$$ = $1': it can copy garbage.

This commit is contained in:
Paul Eggert
2002-08-12 15:04:54 +00:00
parent 93a1e33a1d
commit accea6db68

View File

@@ -1044,8 +1044,8 @@ yyreduce:
/* If YYLEN is nonzero, implement the default value of the action: /* If YYLEN is nonzero, implement the default value of the action:
`$$ = $1'. `$$ = $1'.
Otherwise, the following line sets YYVAL to the semantic value of Otherwise, the following line sets YYVAL to garbage.
the lookahead token. This behavior is undocumented and Bison This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */ GCC warning that YYVAL may be used uninitialized. */