From 0f0e1ace602fd8ded2457b1ea4f73c8fb2bfc6cc Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Sat, 18 Oct 2008 12:46:12 -0400 Subject: [PATCH] Fix yyerror_range for user-defined location type in C++. Reported by Georg Sauthoff at . * data/lalr1.cc (parse): Change type of yyerror_range to location_type. * THANKS (Georg Sauthoff): Add. --- ChangeLog | 8 ++++++++ THANKS | 1 + data/lalr1.cc | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8512a978..e11cef1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-18 Joel E. Denny + + Fix yyerror_range for user-defined location type in C++. Reported by + Georg Sauthoff at + . + * data/lalr1.cc (parse): Change type of yyerror_range to location_type. + * THANKS (Georg Sauthoff): Add. + 2008-10-18 Joel E. Denny Update several administrative files mainly to facilitate releasing. diff --git a/THANKS b/THANKS index 7b16cf3c..6785e2a8 100644 --- a/THANKS +++ b/THANKS @@ -34,6 +34,7 @@ Fabrice Bauzac noon@cote-dazur.com Florian Krohm florian@edamail.fishkill.ibm.com Frank Heckenbach frank@g-n-u.de Frans Englich frans.englich@telia.com +Georg Sauthoff gsauthof@TechFak.Uni-Bielefeld.DE Goran Uddeborg goeran@uddeborg.se Guido Trentalancia trentalg@aston.ac.uk H. Merijn Brand h.m.brand@hccnet.nl diff --git a/data/lalr1.cc b/data/lalr1.cc index bc371dcc..927466a2 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -537,7 +537,7 @@ do { \ /// Location of the lookahead. location_type yylloc; /// The locations where the error started and ended. - location yyerror_range[2]; + location_type yyerror_range[2]; /// $$. semantic_type yyval; -- 2.45.2