Vexu / arocc

A C compiler written in Zig.

Home Page:http://aro.vexu.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect parse: calling function via statement expression

ehaas opened this issue · comments

int foo(void);
int bar(void) {
    return ({foo;})();
}

This should parse without errors but we get:

test.c:3:20: error: expected ';', found '('
    return ({foo;})();
                   ^