Fix constants bound to redeclared function args
authorZachary Snow <zach@zachjs.com>
Sat, 26 Dec 2020 15:39:57 +0000 (08:39 -0700)
committerZachary Snow <zach@zachjs.com>
Sat, 26 Dec 2020 15:48:01 +0000 (08:48 -0700)
commit1419c8761cc7594f56855546a633f8bdf0e3ebca
treec002566f1988d5f5a6bea7fc11bcc9edb64d656e
parent449154803737f45406f711d965113536bc8ae818
Fix constants bound to redeclared function args

The changes in #2476 ensured that function inputs like `input x;`
retained their single-bit size when instantiated with a constant
argument and turned into a localparam. That change did not handle the
possibility for an input to be redeclared later on with an explicit
width, such as `integer x;`.
frontends/ast/simplify.cc
tests/various/const_arg_loop.v