arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Incorrect parse: calling function via statement expression

Open ehaas opened this issue 1 year ago • 0 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;})();
                   ^

ehaas avatar Mar 26 '24 16:03 ehaas