ref: ca5d97ab9816e93ed64e2ab6fe467488228a0409
parent: 7be6028358f07d4e01fbadf8d9f31041bf8c2fce
author: Ori Bernstein <ori@markovcorp.com>
date: Wed Jul 26 06:43:51 EDT 2017
Be stricter about declarations in function types. stupid shit like: const foo : (bar : baz, blah, here -> void) should not miscompile any more.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -535,7 +535,7 @@
$$.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;