* src/parse/libparse.cc (parse::parse): Do not copy the parser
instance.
---
src/parse/libparse.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/parse/libparse.cc b/src/parse/libparse.cc
index 66c72b7..29c0e4b 100644
--- a/src/parse/libparse.cc
+++ b/src/parse/libparse.cc
@@ -1,6 +1,6 @@
//
// This file is part of Nolimips, a MIPS simulator with unlimited registers
-// Copyright (C) 2003, 2004 Benoit Perrot <benoit(a)lrde.epita.fr>
+// Copyright (C) 2003, 2004, 2013 Benoit Perrot <benoit(a)lrde.epita.fr>
//
// Nolimips is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -45,7 +45,7 @@ namespace parse
program_builder.set_nop_after_branch(nop_after_branch_p);
std::string dummy(filename);
- yy::parser parser = yy::parser(dummy, program_builder);
+ yy::parser parser(dummy, program_builder);
parser.set_debug_level(trace_parse_p);
scan_open(filename, trace_scan_p);
--
1.7.10.4
Show replies by date