fix symbol collision, seen with clang-3.5
autfilt would segfault after reading any file, because the local result_ structure used in hoaparse has the same name as the local result_ structure used in dstarparse. For some reason I can only see this problem using clang-3.5, not with gcc. * src/dstarparse/dstarparse.yy, src/hoaparse/hoaparse.yy: Declare both structures in a different namespace.
This commit is contained in:
parent
ee0c0cd28c
commit
d3fdf55fa3
2 changed files with 98 additions and 92 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- coding: utf-8 -*-
|
||||
** Copyright (C) 2013, 2014 Laboratoire de Recherche et Développement
|
||||
** de l'Epita (LRDE).
|
||||
** Copyright (C) 2013, 2014, 2015 Laboratoire de Recherche et
|
||||
** Développement de l'Epita (LRDE).
|
||||
**
|
||||
** This file is part of Spot, a model checking library.
|
||||
**
|
||||
|
|
@ -34,6 +34,8 @@
|
|||
#include "ltlast/constant.hh"
|
||||
#include "public.hh"
|
||||
|
||||
inline namespace dstaryy
|
||||
{
|
||||
typedef std::map<int, bdd> map_t;
|
||||
|
||||
struct result_
|
||||
|
|
@ -63,6 +65,7 @@
|
|||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
%parse-param {spot::dstar_parse_error_list& error_list}
|
||||
%parse-param {result_& result}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,8 @@
|
|||
#include "priv/accmap.hh"
|
||||
#include "ltlparse/public.hh"
|
||||
|
||||
inline namespace hoayy
|
||||
{
|
||||
/* Cache parsed formulae. Labels on arcs are frequently identical
|
||||
and it would be a waste of time to parse them to formula* over and
|
||||
over, and to register all their atomic_propositions in the
|
||||
|
|
@ -111,6 +113,7 @@
|
|||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
%parse-param {spot::hoa_parse_error_list& error_list}
|
||||
%parse-param {result_& res}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue