veripool / verilog-perl

Verilog parser, preprocessor, and related tools for the Verilog-Perl package
https://www.veripool.org/verilog-perl
Artistic License 2.0
121 stars 34 forks source link

Parser reports incorrect filename / linenumber when parsing SystemVerilog class #1162

Closed veripoolbot closed 7 years ago

veripoolbot commented 7 years ago

Author Name: Dave Storrar Original Redmine Issue: 1162 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


I'm using a basic subclass of SigParser which reports when certain items are defined I noticed that the "filename" and "lineno" methods can report incorrect information when a class is encountered.

Attached testcase shows the problem. The SystemVerilog file contains three classes:

  1. I2CTiming which reports the correct line-number but wrong file (Perl_Verilog::Std_module).
  2. I2CTiming2 which is a virtual class (and reports correctly).
  3. I2CTiming3 which reports the same information as I2CTiming2.

(Note: I'm still on version 3.418, but I don't think anything related to this has changed since).

veripoolbot commented 7 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-05-17T01:39:07Z


Thanks for the example.

Fixed in git towards 3.435. I'll hold releasing this a bit in case you find more problems.

veripoolbot commented 7 years ago

Original Redmine Comment Author Name: Wilson Snyder (@wsnyder) Original Date: 2017-09-09T01:56:42Z


In 3.442.