summary refs log tree commit diff stats
path: root/compiler/semdestruct.nim
diff options
context:
space:
mode:
authorMichał Zieliński <michal@zielinscy.org.pl>2014-01-26 17:06:21 +0100
committerMichał Zieliński <michal@zielinscy.org.pl>2014-01-26 17:06:21 +0100
commite0e0b409e49b53e9c95de6fcb0372707b3869de6 (patch)
treef4128f64551d3de5fd2e21ab53686bf370ee21a8 /compiler/semdestruct.nim
parentad1a0c51e265eaaa977dd35654f9a3136983e2fa (diff)
parent5d712e0d3f9f5b8e486720c8bedd749656b527d8 (diff)
downloadNim-e0e0b409e49b53e9c95de6fcb0372707b3869de6.tar.gz
Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Conflicts:
	lib/pure/osproc.nim
Diffstat (limited to 'compiler/semdestruct.nim')
-rw-r--r--compiler/semdestruct.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/semdestruct.nim b/compiler/semdestruct.nim
index 9dbbf2940..fb05826cb 100644
--- a/compiler/semdestruct.nim
+++ b/compiler/semdestruct.nim
@@ -116,7 +116,10 @@ proc generateDestructor(c: PContext, t: PType): PNode =
       let stmt = destroyField(c, t.n.sons[s].sym, destructedObj)
       if stmt != nil: addLine(stmt)
     else:
-      internalAssert false
+      # XXX just skip it for now so that the compiler doesn't crash, but
+      # please zahary fix it! arbitrary nesting of nkRecList/nkRecCase is
+      # possible. Any thread example seems to trigger this. 
+      discard
   # base classes' destructors will be automatically called by
   # semProcAux for both auto-generated and user-defined destructors