ref: 210b24e9cf07baef21fb0fd943f81f38a3196945
parent: 2e48449a7eff16d5e1c47938747f1b35c1440ee3
author: Michael Forney <mforney@mforney.org>
date: Fri Feb 17 16:50:40 EST 2017
Set loc when parsing decllist Otherwise, the .use file gets a garbage line value, causing builds to be unreproducible.
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -287,7 +287,7 @@
;
decllist: declbody {
- $$.nl = NULL; $$.nn = 0;
+ $$.loc = $1->loc; $$.nl = NULL; $$.nn = 0;
lappend(&$$.nl, &$$.nn, $1);
}
| declbody Tcomma decllist {