hi,
just stumbled accross this problem:
this is pikefarm build 2898
Pike v7.7 release 47 running Hilfe v3.5 (Incremental Pike Frontend)
> sscanf(("abc"[0..2]),"%s",s);
fish: Job 1, #~pikefarm/bin/pike# terminated by signal SIGSEGV (Address boundary error)
also the following issues:
Pike v7.7 release 47 running Hilfe v3.5 (Incremental Pike Frontend)
> string s; sscanf(("abc"[0..2]),"%s",s);
(1) Result: 1
> sscanf(("abc"[0..2]),"%s",s);
(2) Result: 1
> sscanf("abc"[0..2],"%s",s);
Compiler Error: 1: parse error, unexpected `TOK_DOT_DOT'
Compiler Error: 1: parse error, unexpected `']'', expecting `','' or `')''
Compiler Error: 1: parse error, unexpected `TOK_NUMBER'
Compiler Error: 1: Missing ']'.
Compiler Error: 1: parse error, unexpected `']'', expecting `TOK_LEX_EOF' or `';''
> sscanf(("abc"[0..2]),"%s",s);
Compiler Error: 1: parse error, unexpected `TOK_NUMBER'
Compiler Error: 1: parse error, unexpected `']'', expecting `')''
Compiler Error: 1: parse error, unexpected `TOK_DOT_DOT'
Compiler Error: 1: Missing ']'.
Compiler Error: 1: parse error, unexpected `TOK_DOT_DOT'
Compiler Error: 1: parse error, unexpected `']'', expecting `')''
Compiler Error: 1: parse error, unexpected `TOK_NUMBER'
Compiler Error: 1: parse error, unexpected `']'', expecting `error' or `',''
Compiler Error: 1: parse error, unexpected `')'', expecting `TOK_LEX_EOF' or `';''
this happens in 7.6 as well:
Pike v7.6 release 66 running Hilfe v3.5 (Incremental Pike Frontend)
> "abc"[0..2];
(1) Result: "abc"
> sscanf("abc"[0..2],"%s",s);
Compiler Error: 1:syntax error, unexpected TOK_DOT_DOT
Compiler Error: 1:syntax error, unexpected ']', expecting ',' or ')'
Compiler Error: 1:syntax error, unexpected TOK_NUMBER
Compiler Error: 1:Missing ']'.
> "abc"[0..2];
Compiler Error: 1:syntax error, unexpected TOK_NUMBER
Compiler Error: 1:syntax error, unexpected ']', expecting ')'
Compiler Error: 1:syntax error, unexpected TOK_DOT_DOT
Compiler Error: 1:Missing ']'.
Compiler Error: 1:syntax error, unexpected TOK_DOT_DOT
Compiler Error: 1:syntax error, unexpected ']', expecting ')'
Compiler Error: 1:syntax error, unexpected TOK_NUMBER
greetings, martin.