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.


Reply via email to