akimd / bison

GNU Bison
GNU General Public License v3.0
334 stars 90 forks source link

Inconsistent use of static_cast in c++ skeleton (lalr1.cc) #20

Closed donmac703 closed 4 years ago

donmac703 commented 4 years ago

Line 924 reads: yypush_ ("Shifting", static_cast (yyn), YY_MOVE (yyla));]b4_lac_if([[

Line 855 does not use staticcast: YYCDEBUG << "Entering state " << int (yystack[0].state) << '\n'; It should be: YYCDEBUG << "Entering state " << staticcast (yystack[0].state) << '\n';

Line 1437 does not use staticcast: *yycdebug << ' ' << int (i->state); It should be: *yycdebug_ << ' ' << static_cast (i->state);

akimd commented 4 years ago

Fix in https://lists.gnu.org/r/bison-patches/2020-01/msg00025.html. Thanks!