ispc icon indicating copy to clipboard operation
ispc copied to clipboard

Accessing struct member in the function call causes syntax error

Open aneshlya opened this issue 2 years ago • 0 comments

Accessing struct member right in the function call causes ISPC parser syntax error:

struct X {
    int x;
};

uniform X getx() {
    uniform X x;
    return x;
}

export uniform int test(){
    return getx().x;
}

Error: syntax error, unexpected '.', expecting ',' or ';'. return getx().x;

aneshlya avatar Jun 01 '23 22:06 aneshlya