c++: make it clear that #define YYSTYPE is not supported

We have been accepting this for years, but it is deprecated: people
are expecting to define api.value.type instead.

* doc/bison.texi: Make it clear that YYSTYPE and YYLTYPE are for C
only.
This commit is contained in:
Akim Demaille
2021-01-31 13:18:51 +01:00
parent a70e21215a
commit dc8fe0678a
3 changed files with 31 additions and 35 deletions

7
NEWS
View File

@@ -2,6 +2,13 @@ GNU Bison NEWS
* Noteworthy changes in release 3.7.5 (2021-01-24) [stable]
** Deprecated features
It is always recommended to prefer `%define api.value.type foo` to
`#define YYSTYPE foo`. The latter is supported in C for compatibility
with Yacc, but not in C++. Warnings are now issued if `#define YYSTYPE`
is used in C++, and eventually support will be removed.
** Bug fixes
*** Counterexample Generation