ref: a68e92f1e80f262e04d6e6c1d27af80199afbdc0
parent: f5e054e36b30b4ef160f063c093be55e10585ed5
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Mar 3 17:02:06 EST 2019
Don't set the env on typedef psuedodecls. We want to specialize the args in the parent env.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -1176,9 +1176,12 @@
{
static int nextpseudoid;
char buf[128];
+ Node *d;
bprintf(buf, 128, ".pdecl%d", nextpseudoid++);
- return mkdecl(l, mkname(l, buf), t);
+ d = mkdecl(l, mkname(l, buf), t);
+ d->decl.env = NULL;
+ return d;
}
static void