LWN.net Logo

YYERROR__VERBOSE

YYERROR__VERBOSE

Posted Jul 26, 2012 10:03 UTC (Thu) by ballombe (subscriber, #9523)
Parent article: Bison 2.6 released

I hope they will reconsider removing this one. This will cause lot of software to lose silently the verbose error reporting and nobody will notice until it is too late (unless it is caught by the test suite, which mean that test suite of older version will fail which is quite painful when bisecting).


(Log in to post comments)

YYERROR__VERBOSE

Posted Jul 26, 2012 13:40 UTC (Thu) by pbonzini (subscriber, #60935) [Link]

I agree, also for YYPARSE_PARAM and YYLEX_PARAM. Parsers are often write-and-forget, which means for programs such as Bison (unfortunately) there is no long-enough deprecation period.

YYERROR__VERBOSE

Posted Jul 26, 2012 21:33 UTC (Thu) by ballombe (subscriber, #9523) [Link]

Maybe they should make bison to output a deprecation warning for two release
before the removal.

YYERROR__VERBOSE

Posted Jul 27, 2012 16:39 UTC (Fri) by pbonzini (subscriber, #60935) [Link]

The only thing that _might_ work is printing an error and forcing people to add a --deprecated command-line option. And even then I'm not sure...

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds