Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug: Pure virtual methods are allowed in non-virtual classes #76

Open
DaveMcEwan opened this issue Jan 4, 2023 · 0 comments
Open

Bug: Pure virtual methods are allowed in non-virtual classes #76

DaveMcEwan opened this issue Jan 4, 2023 · 0 comments

Comments

@DaveMcEwan
Copy link

Methods declared like pure virtual function foo or pure virtual task foo are only allowed inside a virtual class (declared like virtual class foo) or an interface class (declared like interface class foo).
IEEE1800-2017 doesn't phrase this particularly well and it isn't stated as a footnote to Annex A, but it looks clear enough from clause 8.21 (page 186).

This test shows the problem:
https://chipsalliance.github.io/sv-tests-results/?v=sv_parser+uvm-req+class_member_test_5

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant