Fix yyerror_range for user-defined location type in C++.
authorJoel E. Denny <jdenny@ces.clemson.edu>
Sat, 18 Oct 2008 16:46:12 +0000 (12:46 -0400)
committerJoel E. Denny <jdenny@ces.clemson.edu>
Sat, 18 Oct 2008 16:46:12 +0000 (12:46 -0400)
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.

ChangeLog
THANKS
data/lalr1.cc

index 8512a97..e11cef1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 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.
        * HACKING (Administrivia): Make the git-merge-changelog notes more
        helpful.
diff --git a/THANKS b/THANKS
index 7b16cf3..6785e2a 100644 (file)
--- 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
index bc371dc..927466a 100644 (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;