Pike 8.1 segfault compiling unknown name

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Pike 8.1 segfault compiling unknown name

Chris Angelico
int main()
{
    //compile("void x(int id) {boom = ({id});}");
    compile("void x(int id) {boom += ({id});}");
}

The first (commented-out) line will raise a standard exception
regarding the unknown name "boom". The second will segfault the
interpreter.

The crash appears to happen deep inside grammar handling, possibly
involving some type handling? Not sure. Any ideas?

ChrisA