Files
bison/tests
Akim Demaille 07a187c5ee c++: fix double free when a symbol_type was moved
Currently the following piece of code crashes (with parse.assert),
because we don't record that s was moved-from, and we invoke its dtor.

    {
      auto s = parser::make_INT (42);
      auto s2 = std::move (s);
    }

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

* data/c++.m4 (by_type): Provide a move-ctor.
(basic_symbol): Be sure not to read a moved-from value.
* tests/c++.at (C++ Variant-based Symbols Unit Tests): Check this case.
2018-12-24 07:49:50 +01:00
..
2008-11-16 19:46:16 +01:00
2018-10-26 18:59:01 +02:00
2018-10-22 17:49:06 +02:00
2018-10-22 17:49:06 +02:00
2018-10-05 07:01:05 +02:00
2018-10-05 07:01:05 +02:00
2018-05-12 18:18:41 +02:00
2018-05-12 18:18:41 +02:00
2018-06-17 18:43:59 +02:00
2018-08-11 18:09:29 +02:00
2018-05-12 18:18:41 +02:00
2018-11-20 18:44:30 +01:00
2018-10-22 17:49:06 +02:00