From accea6db6873a635e119c81c14f738678b1b5ee6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 12 Aug 2002 15:04:54 +0000 Subject: [PATCH] Fix comment about `$$ = $1': it can copy garbage. --- data/yacc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. */ -- 2.50.0