Skip to content

cgen error: redefinition of type #26884

@einar-hjortdal

Description

@einar-hjortdal

Describe the bug

Code compiles with cgen error redefinition of '__v_array_to_interface_array__Array_einar_hjortdal__firebird__Value__to__Array_einar_hjortdal__firebird__Value'

Reproduction Steps

git clone https://github.com/einar-hjortdal/peony.git
cd peony
git checkout feat_argon2id_passwords
v install
v -n run peony_test.v 

Expected Behavior

no cgen error

Current Behavior

================== C compilation error (from tcc): ==============
cc: /tmp/v_1000/peony_test.01KPDZCT6MAQJV4RNG09SXPS1F.tmp.c:23937: error: redefinition of '__v_array_to_interface_array__Array_einar_hjortdal__firebird__Value__to__Array_einar_hjortdal__firebird__Value'
=================================================================

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.5.1 7f8fc05

Environment details (OS name and version, etc.)

V full version V 0.5.1 58f1857.7f8fc05
OS linux, "openmamba release 2026.4 for x86_64 (rolling)"
Processor 8 cpus, 64bit, little endian, Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
Memory 13.11GB/31.17GB
V executable /home/einar/.local/lib64/v/v
V last modified time 2026-04-17 09:15:17
V home dir OK, value: /home/einar/.local/lib64/v
VMODULES OK, value: /home/einar/.vmodules
VTMP OK, value: /tmp/v_1000
Current working dir OK, value: /home/einar/Documents/projects/vlang/active/peony
Git version git version 2.53.0
V git status weekly.2026.03-1174-g7f8fc05c
.git/config present true
cc version cc (GCC) 15.2.1 20251019
gcc version gcc (GCC) 15.2.1 20251019
clang version N/A
tcc version tcc version 0.9.28rc 2025-02-13 HEAD@f8bd136d (x86_64 Linux)
tcc git status thirdparty-linux-amd64 696c1d84
emcc version N/A
glibc version ldd (GNU libc) 2.43

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions