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
Importing encoding.binary into a module causes a "compiler bug" at build-time, however it doesn't appear when importing it from within the V REPL
Reproduction Steps
AFAIK, just putting import encoding.binary into a file causes this to happen
Expected Behavior
To be able to access all the functions within encoding.binary without it failing to compile
Current Behavior
The following error gets printed via the command: v . -show-c-output:
======== Output of the C Compiler (/opt/v/thirdparty/tcc/tcc.exe) ========
/tmp/v_1000/advertise.01K0CSQ3BKT5PEMXGS1XHJ4QMM.tmp.c:904: error: ';' expected (got "Map_string_encoding__binary__Any")
==========================================================================
======== Output of the C Compiler (cc) ========
/tmp/v_1000/advertise.01K0CSQ3BKT5PEMXGS1XHJ4QMM.tmp.c:904:17: error: unknown type name ‘Map_string_encoding__binary__Any’
904 | Map_string_encoding__binary__Any* _Map_string_encoding__binary__Any;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/v_1000/advertise.01K0CSQ3BKT5PEMXGS1XHJ4QMM.tmp.c:905:17: error: unknown type name ‘Map_int_encoding__binary__Any’
905 | Map_int_encoding__binary__Any* _Map_int_encoding__binary__Any;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
===============================================
Describe the bug
Importing
encoding.binaryinto a module causes a "compiler bug" at build-time, however it doesn't appear when importing it from within the V REPLReproduction Steps
AFAIK, just putting
import encoding.binaryinto a file causes this to happenExpected Behavior
To be able to access all the functions within
encoding.binarywithout it failing to compileCurrent Behavior
The following error gets printed via the command:
v . -show-c-output:Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.11 cb8b8f2
Environment details (OS name and version, etc.)
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.