glr2.cc: require C++11

Reported by Dagobert Michelsen.
https://lists.gnu.org/r/bug-bison/2021-08/msg00006.html

* m4/bison-cxx-std.m4 (_BISON_CXXSTD_98_snippet): We don't need
vector::data, it was only for glr2.cc, which is C++11 anyway.
(_BISON_CXXSTD_11_snippet): We need vector::data and std::swap on
arrays.
* m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): We don't need
vector::data.
* tests/local.at (AT_COMPILE_CXX): Skip when glr2.cc and no support
for C++11.
This commit is contained in:
Akim Demaille
2021-08-17 12:53:09 +02:00
parent f2c568d3ef
commit 36f37568ba
6 changed files with 32 additions and 29 deletions

5
TODO
View File

@@ -1,3 +1,6 @@
* 3.8
Don't showcase multi start.
* Soon
** scan-code
The default case is scanning char-per-char.
@@ -183,7 +186,7 @@ Les catégories d'avertissements incluent :
Line -1 and -3 should mention CATEGORIE, not CATEGORY.
* Bison 3.8
* Bison 3.9
** Rewrite glr.cc (currently glr2.cc)
*** custom error messages