PR# 15144 Attribute with body `Result := Current' causes apparent infinite compiler recursion

Problem Report Summary
Submitter: prestoat2000
Category: Compiler
Priority: Medium
Date: 2008/12/10
Class: Bug
Severity: Serious
Number: 15144
Release: 6.3.76070
Confidential: No
Status: Closed
Responsible: alexk_es
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1.9) Gecko/20071111 Firefox/2.0.0.9 Solaris 10 on SPARC
Synopsis: Attribute with body `Result := Current' causes apparent infinite compiler recursion

Description
A class with an attribute

        s: like Current
                attribute
                        Result := Current
                end

causes the compiler to go into (apparent) infinite recursion and run out of
stack space.  I compiled in void-safe mode.
To Reproduce
Compile with attached class and config file.  Compiler eats memory until there
is no more.
Problem Report Interactions
From:alexk_es    Date:2009/01/09    Status: Closed    Download   
Fixed in rev#76624.
However the compiler reports a VEVI error for the reattachment Result := Current, because the attribute s is not initialized at that point and this happens inside the body of the attribute.
The test is modified to reflect this behaviour.

From:prestoat2000    Date:2008/12/19    Download   
Added eweasel test term169 for this bug.

From:prestoat2000    Date:2008/12/10    Download   
Attachments for problem report #15144

Attachment: test.e     Size:144
Attachment: test.ecf     Size:1126