From dc8fe0678a6f32a1d755bb163efcac42976220d9 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 31 Jan 2021 13:18:51 +0100 Subject: 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. --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 71341997..8434ac25 100644 --- a/NEWS +++ b/NEWS @@ -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 -- cgit v1.2.1