Issue 3439 in pharo: Compiler error 'subscript is out of bounds: ...'

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

Issue 3439 in pharo: Compiler error 'subscript is out of bounds: ...'

pharo
Status: Accepted
Owner: adrian.lienhard

New issue 3439 by adrian.lienhard: Compiler error 'subscript is out of  
bounds: ...'
http://code.google.com/p/pharo/issues/detail?id=3439

Evaluating the expression

     Object compile: 'self foo. ['

yields an error 'subscript is out of bounds: 12' instead of a syntax error  
like 'self foo. [Period or right bracket expected ->'.

This is broken in 1.1.1 and 1.2.

In Parser>>#expected:, the hereMark is larger than the size of the source,  
which leads to a subsequent error when creating a syntax error notification.