From 41a4806a825bebfa73a5a9337672735ba1f753c6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 1 Nov 2012 15:38:25 +0100 Subject: [PATCH] lalr1.cc: always initialize yylval. * data/lalr1.cc: here. --- data/lalr1.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/lalr1.cc b/data/lalr1.cc index 4eac6351..2fe8d4cb 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -520,7 +520,8 @@ do { \ int yyerrstatus_ = 0; /// Semantic value of the lookahead. - semantic_type yylval; + static semantic_type yyval_default; + semantic_type yylval = yyval_default; /// Location of the lookahead. location_type yylloc; /// The locations where the error started and ended. -- 2.45.2