From 9b126de65cdb6c8b59e0eb58763ca2878f456e0d Mon Sep 17 00:00:00 2001 From: Danil Yarantsev Date: Thu, 6 May 2021 23:33:57 +0300 Subject: [PATCH] Fix C++ compilation error in excpt.nim (#17951) --- lib/system/excpt.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 8ba3a16017..5b7d4d49fe 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -444,7 +444,7 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} = {.emit: "throw;".} else: pushCurrentException(e) - {.emit: "throw e;".} + {.emit: "throw `e`;".} elif defined(nimQuirky) or gotoBasedExceptions: # XXX This check should likely also be done in the setjmp case below. if e != currException: