]> git.saurik.com Git - bison.git/commitdiff
lalr1.cc: always initialize yylval.
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 1 Nov 2012 14:38:25 +0000 (15:38 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 6 Nov 2012 16:36:04 +0000 (17:36 +0100)
* data/lalr1.cc: here.

data/lalr1.cc

index 4eac6351d5a562f3621672cceb373282a93811ec..2fe8d4cbd84de5f4a9b2f278aa70f3bb8e4b50a8 100644 (file)
@@ -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.