mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 18:23:03 +00:00
Fix comment about `$$ = $1': it can copy garbage.
This commit is contained in:
@@ -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. */
|
||||||
|
|||||||
Reference in New Issue
Block a user