diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-05-27 09:17:36 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-05-27 10:03:57 +0200 |
commit | d17dc9a8b509723f669197e8a1c58b2179b7706c (patch) | |
tree | bc56dbe0f0d0a3928ecde6afe395cd3645f7682e /THANKS | |
parent | 7bb478bd199e18b710c0f73f2fa6f54938f10405 (diff) | |
download | bison-d17dc9a8b509723f669197e8a1c58b2179b7706c.tar.gz |
C++: fix -Wdeprecated warnings
For instance on test 99:
In file included from @@.cc:56:
@@.hh:409:26: error: definition of implicit copy constructor for
'stack_symbol_type' is deprecated because it
has a user-declared copy assignment operator
[-Werror,-Wdeprecated]
stack_symbol_type& operator= (const stack_symbol_type& that);
^
Reported by Derek Clegg.
https://lists.gnu.org/archive/html/bison-patches/2018-05/msg00036.html
* configure.ac (warn_tests): Add -Wdeprecated.
* data/lalr1.cc (stack_symbol_type): Add an explicit copy ctor.
We cannot rely on the explicit default implementation (`= default`)
as we support C++ 98.
Diffstat (limited to 'THANKS')
-rw-r--r-- | THANKS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -40,6 +40,7 @@ Daniel Hagerty hag@gnu.org David J. MacKenzie djm@gnu.org David Kastrup dak@gnu.org Dennis Clarke dclarke@blastwave.org +Derek Clegg derek@me.com Derek M. Jones derek@knosof.co.uk Di-an Jan dianj@freeshell.org Dick Streefland dick.streefland@altium.nl |