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

builder error: cannot convert 'struct array' to 'struct array *' #21690

Closed
Eliyaan opened this issue Jun 17, 2024 · 0 comments · Fixed by #21694
Closed

builder error: cannot convert 'struct array' to 'struct array *' #21690

Eliyaan opened this issue Jun 17, 2024 · 0 comments · Fixed by #21694
Labels
Bug This tag is applied to issues which reports bugs.

Comments

@Eliyaan
Copy link
Contributor

Eliyaan commented Jun 17, 2024

Describe the bug

A builder error is found when running the following code.

Reproduction Steps

struct Balise {
}

fn escape_tag(mut parents []Balise) {
                dump(parents)
                stack := []&Balise{}
                dump(stack)
}

Expected Behavior

No builder error.

Current Behavior

==================
/tmp/v_1000/main.01J0K7CCEACS17T5B1Z0DCW7AH.tmp.c:13228: error: cannot convert 'struct array' to 'struct array *'
...
==================
(Use `v -cg` to print the entire error message)

builder error

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.6 294f7e4.bebe943

Environment details (OS name and version, etc.)

V full version: V 0.4.6 294f7e4.bebe943
OS: linux, Linux version 6.7.11-200.fc39.x86_64 (mockbuild@bdb8d24f206645e2bda44c1cf867612d) (gcc (GCC) 13.2.1 20240316 (Red Hat 13.2.1-7), GNU ld version 2.40-14.fc39) #1 SMP PREEMPT_DYNAMIC Wed Mar 27 16:50:39 UTC 2024

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

@Eliyaan Eliyaan added the Bug This tag is applied to issues which reports bugs. label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This tag is applied to issues which reports bugs.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant