Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fuzzer: Hang on unusual preparser include concats #1552
Author Name: Eric Rippey
Original Assignee: Wilson Snyder (@wsnyder)
Running the attached testcase with:
verilator_bin --lint-only 4.sv
Verilator 4.020 devel rev v4.020-18-g4361fb8
Does not terminate in a reasonable amount of time. It reports that it is recursively including itself, but it is not obvious why it thinks it needs to do that.
Original Redmine Comment
Thanks. Basically the double ticks means concatenate and as there's no following token it comes from the auto-inserted `line, so it picking the filename while strange isn't really wrong per-se. Fixed it to properly stop on the recursive include.
Fixed in git towards eventual 4.022 release.