From 80fb6943de4ac54a311ea8a5947242970fa39917 Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Tue, 11 Nov 2014 23:04:49 +0100 Subject: [PATCH] fix yyloc in recent bison versions --- src/parser.yy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.yy b/src/parser.yy index 1d73510..0c00e15 100644 --- a/src/parser.yy +++ b/src/parser.yy @@ -104,7 +104,7 @@ constant : INTEGER variable : STRING { if (!driver.calc.existsVariable(*$1)) { - error(yyloc, std::string("Unknown variable \"") + *$1 + "\""); + error(yyla.location, std::string("Unknown variable \"") + *$1 + "\""); delete $1; YYERROR; }