[squeak-dev] [BUG] Compiler Bug: Code generation with cascade and #caseOf: fails

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Sat Jan 18 20:09:56 UTC 2020


Steps to reproduce:

Do it:

Object compile: '

foo: anObject

^ self foo

    flag: #bar;

    caseOf: { [#corge] -> [self grault: anObject] }

'


Error:

In TempVariableNode >> #isReferencedWithinBlockExtent:: MessageNotUnderstood: UndefinedObject >> #rangleIncludes:.

anInterval is nil.

In #computeCopiedValues:, blockExtent of the BlockNode {[#corge]} is nil.


This may be related to the observation made in http://forum.world.st/BUG-Cannot-compile-cascade-sent-to-block-td5108942.html that blockExtent can be nil.

Maybe we should handle optimized BlockNodes differently in this method?

Not (yet?) further investigated.


Best,

Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200118/55d99a2c/attachment.html>


More information about the Squeak-dev mailing list