From c35f2f833449984a35ee6975d5a00c3d92eb9b86 Mon Sep 17 00:00:00 2001 From: "Frederick C. Kurz" Date: Fri, 10 Jul 2015 12:50:40 -0400 Subject: [PATCH] Changes to vvp/vthread.cc "child->delay_delete = 1;" was added, for when building with "Microsoft Visual Studio Express 2015 RC Web" in DEBUG mode, so that pr2909555.v would pass with -strict, otherwise it would cause memory access error will trying to access the previously deleted "child" variable. --- vvp/vthread.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/vvp/vthread.cc b/vvp/vthread.cc index 8a9eb8254..071cca8cf 100644 --- a/vvp/vthread.cc +++ b/vvp/vthread.cc @@ -5818,6 +5818,7 @@ bool of_EXEC_UFUNC(vthread_t thr, vvp_code_t cp) child->rd_context = child_context; child->is_scheduled = 1; + child->delay_delete = 1; vthread_run(child); running_thread = thr;