parser: fix v selfcompilation with tcc (tcc bug workaround)

pull/4398/head
Delyan Angelov 2020-04-14 11:06:19 +03:00
parent 956651384c
commit 2df4998acc
1 changed files with 4 additions and 0 deletions

View File

@ -1348,7 +1348,11 @@ fn (p mut Parser) array_init() ast.ArrayInit {
} }
line_nr := p.tok.line_nr 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() last_pos = p.tok.position()
p.check(.rsbr) p.check(.rsbr)
// [100]byte // [100]byte
if exprs.len == 1 && p.tok.kind in [.name, .amp] && p.tok.line_nr == line_nr { if exprs.len == 1 && p.tok.kind in [.name, .amp] && p.tok.line_nr == line_nr {