# HG changeset patch # User Rik # Date 1449625167 28800 # Node ID 543eca132fa0ba5eab009c9655281d3e52e650e4 # Parent 7883f240d8ea103df50f760219a3cacf9be5bbc9 Fix compilation error passing std::string through '...'. * error.cc (Frethrow): Pass tmp_msg.c_str () through rethrow_error() rather than tmp_msg. diff -r 7883f240d8ea -r 543eca132fa0 libinterp/corefcn/error.cc --- a/libinterp/corefcn/error.cc Tue Dec 08 09:55:51 2015 -0800 +++ b/libinterp/corefcn/error.cc Tue Dec 08 17:39:27 2015 -0800 @@ -951,11 +951,11 @@ if (len > 1) { tmp_msg.erase (len - 1); - rethrow_error (id.c_str (), "%s\n", tmp_msg); + rethrow_error (id.c_str (), "%s\n", tmp_msg.c_str ()); } } else - rethrow_error (id.c_str (), "%s", tmp_msg); + rethrow_error (id.c_str (), "%s", tmp_msg.c_str ()); // FIXME: is this the right thing to do for Vlast_error_stack? // Should it be saved and restored with unwind_protect?