Fix a bug seen with link-time optimizations enabled.

* src/tgbaalgos/simulation.cc (direct_simulation): Do not store the
original_ automaton as a reference. Otherwise with LTO (+ probably NRVO)
we get a situation where the result automaton (that will be stored in
original_) copies the properties of itself.
This commit is contained in:
Alexandre Duret-Lutz 2015-03-01 11:20:35 +01:00
parent 9454584074
commit a530498fbd

View file

@ -720,7 +720,7 @@ namespace spot
std::unique_ptr<scc_info> scc_info_;
const const_tgba_digraph_ptr& original_;
const const_tgba_digraph_ptr original_;
};
} // End namespace anonymous.