Project

General

Profile

Bug #7310

buffer scope in constructor/destructor is not computed correctly

Added by Constantin Asofiei about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
Due date:
% Done:

100%

billable:
No
vendor_id:
GCD
case_num:
version:

History

#2 Updated by Constantin Asofiei about 1 year ago

The issue is when there is an explicit buffer defined with the same name as a buffer in a constructor or destructor:

   constructor public Foo():
      def buffer book for book.

      find first book.
   end.

   destructor Foo():
      def buffer book for book.

      find first book.
   end.

   method public void m2():
      def buffer book for book.

      find first book.
   end.

   method public void m1():
      find first book.
   end.

The default buffer book in m1 is not being emitted as a class field.

#3 Updated by Constantin Asofiei about 1 year ago

  • Assignee set to Constantin Asofiei
  • % Done changed from 0 to 100
  • Status changed from New to Review

The fix is in 7199c/14558

#4 Updated by Greg Shah about 1 year ago

  • Status changed from Review to Test

Code Review Task Branch 7199c Revision 14558

No objections.

#5 Updated by Constantin Asofiei 12 months ago

7199c was merged to trunk rev 14610 and archived

#6 Updated by Greg Shah 12 months ago

  • Status changed from Test to Closed

Also available in: Atom PDF