From: Akim Demaille Date: Thu, 1 Nov 2012 14:38:25 +0000 (+0100) Subject: lalr1.cc: always initialize yylval. X-Git-Tag: v2.6.5~7 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/41a4806a825bebfa73a5a9337672735ba1f753c6 lalr1.cc: always initialize yylval. * data/lalr1.cc: here. --- 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.