Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
veripoolbot opened this issue May 16, 2017 · 2 comments
Closed
Assignees

Comments

@veripoolbot
Copy link
Collaborator

@veripoolbot veripoolbot commented May 16, 2017


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

This comment has been minimized.

Copy link
Collaborator Author

@veripoolbot veripoolbot commented May 17, 2017


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

This comment has been minimized.

Copy link
Collaborator Author

@veripoolbot veripoolbot commented Sep 9, 2017


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


In 3.442.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.