Skip to content

Commit 35f4ae9

Browse files
authored
Merge pull request #1541 from diffblue/instance_vs_typedef1
KNOWNBUG test for re-using a typedef as an instance name
2 parents 36716ab + c63d7c7 commit 35f4ae9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
enum_vs_typedef1.sv
3+
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
--
7+
--
8+
This fails to parse.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
typedef int some_name;
2+
3+
module main;
4+
5+
wire a, b, c;
6+
7+
// The identifier 'some_name' can be re-used in the module scope.
8+
// This works with VCS 2023.03, Questa 2024.3, Xcelium 23.09,
9+
// Riviera Pro 2023.04, but fails with Icarus Verilog 12.
10+
and some_name(a, b, c);
11+
12+
endmodule

0 commit comments

Comments
 (0)