X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/71cb558dfe0f9c80e697308a5084de3b9926ee9c..049016237e8ad3666609295234ed550e66cc185c:/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.