goplus / c2go

Convert C to Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panic: TODO: for condition has too many init statements

visualfc opened this issue · comments

main.c

#include <stdio.h>

int main() {
    for (int i = 0, j = 0; i < 5; ++i, j += 7)
    {
        printf("%d %d\n",i,j);
    }
    return 0;
}

c2go main.c

panic: TODO: for condition has too many init statements

goroutine 1 [running]:
github.com/goplus/gox.(*forStmt).Then(0xc0001b60c0?, 0xc00048d9a8?)
	pkg/mod/github.com/goplus/gox@v1.11.22/stmt.go:403 +0x1b6