You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
================== C compilation error (from tcc): ==============
cc: /tmp/v_1000/fixed_arrays_in_if_expr.01JQH0FAP821SYQYN0P557AC13.tmp.c:5392: error: expression expected before '{'
=================================================================
(You can pass `-cg`, or `-show-c-output` as well, to print all the C error messages).
builder error:
==================
C error found. It should never happen, when compiling pure V code.
This is a V compiler bug, please report it using `v bug file.v`,
or goto https://github.com/vlang/v/issues/new/choose .
You can also use #help on Discord: https://discord.gg/vlang .
More verbose:
~ $ v -show-c-output run /tmp/fixed_arrays_in_if_expr.v
======== Output of the C Compiler (/home/ge/.vlang/thirdparty/tcc/tcc.exe) ========
/tmp/v_1000/fixed_arrays_in_if_expr.01JQH0GDPNNVV74N5V6K1C2CTW.tmp.c:5392: error: expression expected before '{'
===================================================================================
======== Output of the C Compiler (cc) ========
/tmp/v_1000/fixed_arrays_in_if_expr.01JQH0GDPNNVV74N5V6K1C2CTW.tmp.c: In function ‘main__main’:
/tmp/v_1000/fixed_arrays_in_if_expr.01JQH0GDPNNVV74N5V6K1C2CTW.tmp.c:5392:22: error: expected expression before ‘{’ token
5392 | if (!(arr == {0} || arr == {255, 255, 255, 255})) {
| ^
===============================================
No such file or directory; code: 2
What did you expect to see?
No C errors
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.
V version: V 0.4.10 6b3521f, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg /tmp/fixed_arrays_in_if_expr.v && /tmp/fixed_arrays_in_if_exprWhat did you see?
More verbose:
What did you expect to see?
No C errors
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.