diff options
author | Araq <rumpf_a@web.de> | 2018-10-28 13:15:55 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-28 13:17:08 +0100 |
commit | fe855d8ba4b8f4f41a5c27a5c3e09cd86060fad2 (patch) | |
tree | f67005ab1e5d1199dcc221b4c3ae2e9378f1d2ff /compiler | |
parent | 2fa13040b99350c96e20550f4768043d708f0742 (diff) | |
download | Nim-fe855d8ba4b8f4f41a5c27a5c3e09cd86060fad2.tar.gz |
make tstatic_t_bug compile with the C++ backend
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ast.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 68c8e7dd2..77ac5757a 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -811,7 +811,7 @@ type of routineKinds: procInstCache*: seq[PInstantiation] gcUnsafetyReason*: PSym # for better error messages wrt gcsafe - transformedBody*: PNode # cached body after transf pass + transformedBody*: PNode # cached body after transf pass of skModule, skPackage: # modules keep track of the generic symbols they use from other modules. # this is because in incremental compilation, when a module is about to @@ -1734,7 +1734,7 @@ proc isException*(t: PType): bool = return false var base = t - while base != nil: + while base != nil and base.kind in {tyObject, tyGenericInst}: if base.sym != nil and base.sym.magic == mException: return true base = base.lastSon |