]> git.saurik.com Git - bison.git/commit - data/variant.hh
c++: variants: comparing addresses of typeid.name() is undefined
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 7 Jan 2015 09:24:53 +0000 (10:24 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 7 Jan 2015 09:34:07 +0000 (10:34 +0100)
commit7cf84b13a079740a638fed6b46634bc888bd2622
tree1be656e7e75ec316c6ab1b53148bcff4dc68bb0a
parent56351d4c7b3be8a81953defa7e34503976d3589b
c++: variants: comparing addresses of typeid.name() is undefined

Instead of storing and comparing pointers to names of types, store
pointers to the typeids, and compares the typeids.
Reported by Thomas Jahns.
<http://lists.gnu.org/archive/html/bug-bison/2014-03/msg00001.html>

* data/variant.hh (yytname_): Replace with...
(yytypeid_): this.
THANKS
data/variant.hh