make tstatic_t_bug compile with the C++ backend

This commit is contained in:
Araq 2018-10-28 13:15:55 +01:00
commit fe855d8ba4

View file

@ -811,7 +811,7 @@ type
of routineKinds: of routineKinds:
procInstCache*: seq[PInstantiation] procInstCache*: seq[PInstantiation]
gcUnsafetyReason*: PSym # for better error messages wrt gcsafe 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: of skModule, skPackage:
# modules keep track of the generic symbols they use from other modules. # modules keep track of the generic symbols they use from other modules.
# this is because in incremental compilation, when a module is about to # this is because in incremental compilation, when a module is about to
@ -1734,7 +1734,7 @@ proc isException*(t: PType): bool =
return false return false
var base = t var base = t
while base != nil: while base != nil and base.kind in {tyObject, tyGenericInst}:
if base.sym != nil and base.sym.magic == mException: if base.sym != nil and base.sym.magic == mException:
return true return true
base = base.lastSon base = base.lastSon