From 2df4998accc4fdcae65c96f78535b90ead62e299 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 14 Apr 2020 11:06:19 +0300 Subject: [PATCH] parser: fix v selfcompilation with tcc (tcc bug workaround) --- vlib/v/parser/parser.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index b16ee45a7d..fc977211c0 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -1348,7 +1348,11 @@ fn (p mut Parser) array_init() ast.ArrayInit { } line_nr := p.tok.line_nr + // NB: do not remove the next line without testing + // v selfcompilation with tcc first + tcc_stack_bug := 12345 last_pos = p.tok.position() + p.check(.rsbr) // [100]byte if exprs.len == 1 && p.tok.kind in [.name, .amp] && p.tok.line_nr == line_nr {