summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-26 10:43:51 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-26 10:43:51 -0700
commitca5d97ab9816e93ed64e2ab6fe467488228a0409 (patch)
treedf318d1f879b5bf72527cecae75d6bb8a9ca3998
parent7be6028358f07d4e01fbadf8d9f31041bf8c2fce (diff)
downloadmc-ca5d97ab9816e93ed64e2ab6fe467488228a0409.tar.gz
Be stricter about declarations in function types.
stupid shit like: const foo : (bar : baz, blah, here -> void) should not miscompile any more.
-rw-r--r--parse/gram.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/gram.y b/parse/gram.y
index fddf7e8..2746e31 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -535,7 +535,7 @@ argdefs : typedeclcore {
$$.nl = NULL;
$$.nn = 0; lappend(&$$.nl, &$$.nn, $1);
}
- | argdefs Tcomma declcore {lappend(&$$.nl, &$$.nn, $3);}
+ | argdefs Tcomma typedeclcore {lappend(&$$.nl, &$$.nn, $3);}
| /* empty */ {
$$.loc.line = 0;
$$.loc.file = 0;