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
+8
View File
@@ -1,3 +1,11 @@
2008-10-18 Joel E. Denny <[email protected]>
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 <[email protected]> 2008-10-18 Joel E. Denny <[email protected]>
Update several administrative files mainly to facilitate releasing. Update several administrative files mainly to facilitate releasing.
+1
View File
@@ -34,6 +34,7 @@ Fabrice Bauzac [email protected]
Florian Krohm [email protected] Florian Krohm [email protected]
Frank Heckenbach [email protected] Frank Heckenbach [email protected]
Frans Englich [email protected] Frans Englich [email protected]
Georg Sauthoff [email protected]
Goran Uddeborg [email protected] Goran Uddeborg [email protected]
Guido Trentalancia [email protected] Guido Trentalancia [email protected]
H. Merijn Brand [email protected] H. Merijn Brand [email protected]
+1 -1
View File
@@ -537,7 +537,7 @@ do { \
/// Location of the lookahead. /// Location of the lookahead.
location_type yylloc; location_type yylloc;
/// The locations where the error started and ended. /// The locations where the error started and ended.
location yyerror_range[2]; location_type yyerror_range[2];
/// $$. /// $$.
semantic_type yyval; semantic_type yyval;