Syntax error with constant within function gives segmentation fault
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=3995
Reported by Fredrik Noring, Roxen Internet Software noring@roxen.com
foo.pike:
int main(int argc, array argv)
{
constant settings = ([
"thumb":([ "small":([ "maxwidth":100,
"maxheight":100
])
]);
]);
return 0;
}
gives:
$ pike foo.pike
/tmp/foo.pike:7:Missing ']'.
/tmp/foo.pike:7:syntax error, unexpected ';', expecting ')'
/tmp/foo.pike:7:Missing ')'.
Segmenteringsfel