summary refs log tree commit diff stats
path: root/compiler/pragmas.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-01-02 07:49:57 -0800
committerAndreas Rumpf <rumpf_a@web.de>2020-01-02 16:49:57 +0100
commit0ff23e696c1e239214dfc2f1d2bb3e8fc6bf9493 (patch)
treeb707fb906c8a4bc4c1664520e8d43eaa6c456052 /compiler/pragmas.nim
parentc3344862b0d6061cc1581f29c81b29b75c78615a (diff)
downloadNim-0ff23e696c1e239214dfc2f1d2bb3e8fc6bf9493.tar.gz
fix #12985 {.push.} now does not apply to generic instantiations (#12986)
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r--compiler/pragmas.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim
index c8b13ab6a..726402bb4 100644
--- a/compiler/pragmas.nim
+++ b/compiler/pragmas.nim
@@ -1168,7 +1168,7 @@ proc implicitPragmas*(c: PContext, sym: PSym, n: PNode,
   if sym != nil and sym.kind != skModule:
     for it in c.optionStack:
       let o = it.otherPragmas
-      if not o.isNil:
+      if not o.isNil and sfFromGeneric notin sym.flags: # see issue #12985
         pushInfoContext(c.config, n.info)
         var i = 0
         while i < o.len: