summaryrefslogtreecommitdiff
path: root/parse/stab.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-01-02 22:48:41 -0800
committerOri Bernstein <ori@eigenstate.org>2016-01-02 22:48:41 -0800
commitf9d4d377fbc039e674b51986b8cbb1486e8eada5 (patch)
tree1eae05f64f8791971e3bba0220bf35c3ac97bd3e /parse/stab.c
parent5b2417b3ca17e3d3b5256280d202d577db302bfa (diff)
downloadmc-f9d4d377fbc039e674b51986b8cbb1486e8eada5.tar.gz
Disallow out of sync types.
We currently toss out all the info to unify them, so.. uh.
Diffstat (limited to 'parse/stab.c')
-rw-r--r--parse/stab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse/stab.c b/parse/stab.c
index 6ba39a5..1493bb2 100644
--- a/parse/stab.c
+++ b/parse/stab.c
@@ -276,6 +276,8 @@ static int mergedecl(Node *old, Node *new)
e->decl.type = g->decl.type;
else if (g->decl.type->type == Tyvar)
g->decl.type = e->decl.type;
+ else
+ fatal(e, "FIXME: types on both prototype and decl not yet allowed\n");
if (!e->decl.init)
e->decl.init = g->decl.init;