Bug 6629 - lex error when printing an slice such as: print array[1:2]
Summary: lex error when printing an slice such as: print array[1:2]
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 6622
  Show dependency treegraph
 
Reported: 2008-06-11 17:27 UTC by Andrew Cagney
Modified: 2008-06-12 13:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2008-06-11 17:27:18 UTC
(fhpd) print argv
(char **) 0x7fff28a4b3b8
(fhpd) print argv[0:1]

Error: invalid expression at: :1]
(fhpd) print argv[ 0:1]
{(char *) 0x7fff28a4cbbe
"/notnfs/cagney/git/native/frysk-core/frysk/pkglibdir/funit-hello",(char *)
0x7fff28a4cbff "foo"}
(fhpd) 

- we've a missing test case
- we've a breakage in, I suspect the lexer
Comment 1 Petr Machata 2008-06-12 13:49:53 UTC
fixed in e8db017084db58c4c94169718a5c0022dd17ead4
testcases in 09ad908a40a267c243caa418f18cb40b98991694