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

localparam type (...) recognized as wrong syntax #2249

Open
goekce opened this issue Sep 15, 2024 · 0 comments
Open

localparam type (...) recognized as wrong syntax #2249

goekce opened this issue Sep 15, 2024 · 0 comments
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).

Comments

@goekce
Copy link

goekce commented Sep 15, 2024

Describe the bug

localparam type (...) is recognized as wrong syntax

To Reproduce

version: 0.0.3756

module m (                                                                                                            
    output [2:0] addr                                                                                                 
);                                                                                                                    
  localparam type (addr) REG0 = 'h3;                                                                                  
  assign addr = REG0;                                                                                                 
endmodule

Actual behavior:

$ verible-verilog-lint m.sv      
m.sv:4:19: syntax error at token "("

Expected behavior

The syntax is accepted by Verilator, Questa and VCS.

@goekce goekce added the rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017). label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).
Projects
None yet
Development

No branches or pull requests

1 participant