Two escaped chars in bacticks break the builder. #20301
Labels
Bug
This tag is applied to issues which reports bugs.
Compiler Panic
The V compiler itself paniced. It should not, it should produce nice and readable errors instead.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
Unit: Scanner
Bugs/feature requests, that are related to the V scanner/lexer.
Describe the bug
It appears that when you put 2 escaped chars in a pair of bacticks, like you would with a rune, cgen (looking briefly at the stack trace) just breaks.
Reproduction Steps
Expected Behavior
Current Behavior
Possible Solution
Since this would still be an error, just don't do that.
Additional Information/Context
No response
V version
V 0.4.3 8f76a06
Environment details (OS name and version, etc.)
V full version: V 0.4.3 8f76a06.680b0d4
OS: linux, Linux version 6.1.68-1-lts (linux-lts@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Wed, 13 Dec 2023 18:48:47 +0000
Processor: 8 cpus, 64bit, little endian, 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
vroot: OK, value: /home/katekyy/.local/share/v
VMODULES: OK, value: /home/katekyy/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.43.0
Git vroot status: weekly.2023.52-14-g680b0d46
.git/config present: true
CC version: cc (GCC) 13.2.1 20230801
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
The text was updated successfully, but these errors were encountered: