summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-05-14 13:21:16 -0700
committerOri Bernstein <ori@markovcorp.com>2017-05-14 13:21:16 -0700
commit4792730ddf78a778496334c97709c1e0da06a61d (patch)
tree5e7674921ca63c897e9fbc6f69704193f3b3a985
parent1f99d2dc0f2e8afe604bfe777063b4f2e277e185 (diff)
downloadmc-4792730ddf78a778496334c97709c1e0da06a61d.tar.gz
Tag declaration initializers in generics.
-rw-r--r--parse/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/export.c b/parse/export.c
index ba85219..efe4650 100644
--- a/parse/export.c
+++ b/parse/export.c
@@ -173,7 +173,7 @@ static void tagnode(Stab *st, Node *n, int ingeneric, int hidelocal)
if (hidelocal && n->decl.ispkglocal)
n->decl.vis = Vishidden;
n->decl.isexportinit = isexportinit(n);
- if (n->decl.isexportinit)
+ if (n->decl.isexportinit || ingeneric)
tagnode(st, n->decl.init, n->decl.isgeneric, hidelocal);
break;
case Nfunc: