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

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