diff --git a/template/bison/yacc.c b/template/bison/yacc.c index 2d6753c2..353fb9de 100644 --- a/template/bison/yacc.c +++ b/template/bison/yacc.c @@ -1475,7 +1475,11 @@ int yychar; /* The semantic value of the lookahead symbol. */ /* Default value used for initialization, for pacifying older GCCs or non-GCC compilers. */ +#ifdef __cplusplus +static const YYSTYPE yyval_default = YY_INITIAL_VALUE(YYSTYPE()); +#else YY_INITIAL_VALUE (static const YYSTYPE yyval_default;) +#endif YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Location data for the lookahead symbol. */