Pointer in type statement doesn't work #19399
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: cgen
Bugs/feature requests, that are related to the default C generating backend.
Unit: Type System
Bugs/feature requests, that are related to the V types system.
Describe the bug
When I use the "type" statement to define a type that is a reference to a struct, it "ignores" the reference.
Reproduction Steps
V code:
test.h:
Expected Behavior
The generated C code looking like this:
Current Behavior
The generated C code looks like this:
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.1 7169df3
Environment details (OS name and version, etc.)
V full version: V 0.4.1 7b306e9.7169df3
OS: linux, Ubuntu 23.04
Processor: 12 cpus, 64bit, little endian, AMD Ryzen 5 7600X 6-Core Processor
Git version: git version 2.39.2
Git vroot status: weekly.2023.30-348-g7169df3e
.git/config present: true
CC version: cc (Ubuntu 11.4.0-1ubuntu1~23.04) 11.4.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
Important
You can vote for this issue using the 👍 reaction. More votes increase the issue's priority
for developers.
Take into account that only the 👍 reaction counts as a vote.
Only reactions to the issue itself will be counted as votes, not comments.
The text was updated successfully, but these errors were encountered: