c++: also provide a copy constructor for symbol_type

Suggested by Wolfgang Thaller.
http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00081.html

* data/c++.m4 (basic_symbol, by_type): Instead of provide either move
or copy constructor, always provide the copy one.
* tests/c++.at (C++ Variant-based Symbols Unit Tests): Check it.
This commit is contained in:
Akim Demaille
2018-12-24 08:19:01 +01:00
parent 807bf60cfc
commit 10591c8879
3 changed files with 49 additions and 11 deletions

8
NEWS
View File

@@ -210,6 +210,14 @@ GNU Bison NEWS
literal such as "number". The postfix quantifiers are ? (zero or
one), * (zero or more) and + (one or more).
* Noteworthy changes in release 3.2.4 (2018-12-24) [stable]
** Bug fixes
Fix the move constructor of symbol_type.
Always provide a copy constructor for symbol_type, even in modern C++.
* Noteworthy changes in release 3.2.3 (2018-12-18) [stable]
** Bug fixes