Fix yyerror_range for user-defined location type in C++.

Reported by Georg Sauthoff at
<http://lists.gnu.org/archive/html/bug-bison/2008-08/msg00008.html>.
* data/lalr1.cc (parse): Change type of yyerror_range to location_type.
* THANKS (Georg Sauthoff): Add.
This commit is contained in:
Joel E. Denny
2008-10-18 12:46:12 -04:00
parent 548e2104e2
commit 0f0e1ace60
3 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2008-10-18 Joel E. Denny <jdenny@ces.clemson.edu>
Fix yyerror_range for user-defined location type in C++. Reported by
Georg Sauthoff at
<http://lists.gnu.org/archive/html/bug-bison/2008-08/msg00008.html>.
* data/lalr1.cc (parse): Change type of yyerror_range to location_type.
* THANKS (Georg Sauthoff): Add.
2008-10-18 Joel E. Denny <jdenny@ces.clemson.edu>
Update several administrative files mainly to facilitate releasing.

1
THANKS
View File

@@ -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

View File

@@ -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;