summary refs log tree commit diff stats
path: root/compiler/semtempl.nim
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2019-02-12 22:00:31 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-02-12 22:00:31 +0100
commit6870345cd2af461d49159ad453c5f6437752d096 (patch)
tree457fd3338c49f6e62320b84e1c7c4551bbf04ebd /compiler/semtempl.nim
parentbdc150adffccd339dd80e837d5d527206f651e88 (diff)
downloadNim-6870345cd2af461d49159ad453c5f6437752d096.tar.gz
32 bit fixes (#10608)
Diffstat (limited to 'compiler/semtempl.nim')
-rw-r--r--compiler/semtempl.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/semtempl.nim b/compiler/semtempl.nim
index d920a54b8..f180b5373 100644
--- a/compiler/semtempl.nim
+++ b/compiler/semtempl.nim
@@ -558,6 +558,10 @@ proc semTemplateDef(c: PContext, n: PNode): PNode =
     incl(s.flags, sfGlobal)
   else:
     s = semIdentVis(c, skTemplate, n.sons[0], {})
+
+  if s.owner != nil and s.owner.name.s == "system" and s.name.s in ["!=", ">=", ">", "incl", "excl", "in", "notin", "isnot"]:
+    incl(s.flags, sfCallSideLineinfo)
+
   styleCheckDef(c.config, s)
   onDef(n[0].info, s)
   # check parameter list: