clava icon indicating copy to clipboard operation
clava copied to clipboard

Duplicate node of lambda call

Open Process-ing opened this issue 1 year ago • 0 comments

There appears to be a bug in Clava-JS, where a node of a direct call to a lambda expression appears duplicated.

To replicate this error, run Clava-JS with the script:

import Query from "lara-js/api/weaver/Query.js";

console.log(Query.root().dump);

and the source file:

int main(){
    delete ([]{ return new int; })();
    return 0;
}

Output:

Process-ing avatar Jul 30 '24 19:07 Process-ing