v icon indicating copy to clipboard operation
v copied to clipboard

cgen: multiple temporary variables

Open MCausc78 opened this issue 2 years ago • 0 comments

Describe the bug

title

Reproduction Steps

$ v install ui && v install --git https://github.com/DarpHome/discord.v
import discord
import ui

fn f(w &ui.Window, c &discord.GatewayClient) {}

fn main() {}

Expected Behavior

Successful compile

Current Behavior

PS D:\Games\Proekti\V\viscord> v run test.v
(`ui` warnings)
==================
C:/Users/mclr/AppData/Local/Temp/v_0/test.01HNK89DQQ67JMZQ1J80WM78DN.tmp.c:214879: warning: assignment from incompatible pointer type
C:/Users/mclr/AppData/Local/Temp/v_0/test.01HNK89DQQ67JMZQ1J80WM78DN.tmp.c:228113: error: redeclaration of '_t1'
...
==================
(Use `v -cg` to print the entire error message)

builder error:
==================
C error. This should never happen.

This is a compiler bug, please report it using `v bug file.v`.

https://github.com/vlang/v/issues/new/choose

You can also use #help on Discord: https://discord.gg/vlang

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.4 0a612bf

Environment details (OS name and version, etc.)

V full version: V 0.4.4 57a33c3.0a612bf
OS: windows, Microsoft Windows 11 Pro v22000 64-bit
Processor: 12 cpus, 64bit, little endian, 

getwd: D:\Games\Proekti\V\viscord
vexe: D:\Games\Proekti\V\v\v.exe
vexe mtime: 2024-02-01 21:13:05

vroot: OK, value: D:\Games\Proekti\V\v
VMODULES: OK, value: C:\Users\mclr\.vmodules
VTMP: OK, value: C:\Users\mclr\AppData\Local\Temp\v_0

Git version: git version 2.37.0.windows.1
Git vroot status: weekly.2024.04-46-g0a612bf6
.git/config present: true

CC version:
thirdparty/tcc status: thirdparty-windows-amd64 a39eb79b

[!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.

MCausc78 avatar Feb 01 '24 21:02 MCausc78