shithub: mc

Download patch

ref: 4ff354d845429eef262aba6e1c4b74fcd2c4fada
parent: 2d53920a0c348a285c20d87360ed7457afdb1478
author: Ori Bernstein <[email protected]>
date: Mon May 19 19:32:43 EDT 2014

Insert the decl as a decl, not an impl.

--- a/parse/use.c
+++ b/parse/use.c
@@ -812,7 +812,7 @@
                 putimpl(s, impl);
                 /* specialized declarations always go into the global stab */
                 for (i = 0; i < impl->impl.ndecls; i++)
-                    putimpl(file->file.globls, impl->impl.decls[i]);
+                    putdcl(file->file.globls, impl->impl.decls[i]);
                 break;
             case EOF:
                 break;