X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/df04a68ab54dcd8b899532c51ed0c8e1a0486296..3804aa260b956dd012adde3894767254422a5fcf:/data/lalr1.cc diff --git a/data/lalr1.cc b/data/lalr1.cc index 46e58ae2..e45b2e1f 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -512,17 +512,18 @@ do { \ int yychar = yyempty_; int yytoken = 0; - /* State. */ + // State. int yyn; int yylen = 0; int yystate = 0; - /* Error handling. */ + // Error handling. int yynerrs_ = 0; 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.