bugLiberty Eiffel - Bugs: bug #44278, subclassing of ARRAY fails to...

 
 

bug #44278: subclassing of ARRAY fails to compile due to "create {like Current}"

Submitter:  Laurie Moye <lauriemoye>
Submitted:  Mon 16 Feb 2015 08:23:43 PM UTC
   
 
Category:  Kernel libraries Severity:  3 - Normal
Priority:  * 7 - High Status:  Fixed
Assigned to:  ramack Open/Closed:  Closed
Release:  adler Fixed Release:  bell
Planned Release:  bell
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 07 Apr 2016 07:03:29 PM UTC, comment #7: 

de36a645e50e8fa7430b374e32fc794bde10f215 should finally also fix it for ARRAY3

Raphael Mack <ramack>
Group administrator
Tue 15 Mar 2016 07:58:19 PM UTC, comment #6: 

ARRAY2 resize and sub_collection2 need extensive testing...
also the case of creation of empty array2 instances...

Raphael Mack <ramack>
Group administrator
Sat 12 Mar 2016 10:09:00 PM UTC, comment #5: 

f2602dd70f04a29d6f4e6c2070fd26e63d3473a5 should fix it for STRING

open: ARRAY_2 and ARRAY_3

Raphael Mack <ramack>
Group administrator
Fri 08 Jan 2016 10:07:40 PM UTC, comment #4: 

still missing STRING, ARRAY_2, ARRAY_3...

Raphael Mack <ramack>
Group administrator
Thu 07 Jan 2016 10:08:10 PM UTC, comment #3: 

still missing: STRING.substring

Raphael Mack <ramack>
Group administrator
Thu 31 Dec 2015 09:19:24 PM UTC, comment #2: 

fix is committed, so let's see what the tests show before closing this

Raphael Mack <ramack>
Group administrator
Thu 27 Aug 2015 06:06:47 PM UTC, comment #1: 
Raphael Mack <ramack>
Group administrator
Mon 16 Feb 2015 08:23:43 PM UTC, original submission:  

The attached example fails to compile, giving the following message:


ceres/example: compile -boost -no_gc test -o test > test.log 2>&1
ceres/example: cat test.log
****** Fatal Error: Type A[ANY] is deferred. (Cannot create object.)

Line 407 column 10 in ARRAY (/usr/local/share/liberty-adler/src/lib/storage/collection/array.e):
         create Result.make(lower, lower + max - min)
         ^
------
Error occurs while compiling. Compilation process aborted.


Changing the inherited class to STRING gives the same message except that it then quotes Line 647 column 10 in STRING, the 'make' line of substring.

The create clause in D and/or the 'create' in the make line of run in TEST can be removed without affecting the error message.

Laurie Moye <lauriemoye>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #33104:  a.e added by lauriemoye (318B - text/x-eiffel)
file #33105:  test.e added by lauriemoye (305B - text/x-eiffel)
file #33106:  d.e added by lauriemoye (308B - text/x-eiffel)
file #33107:  test.log added by lauriemoye (341B - text/x-log)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ramack (Posted a comment)
  • -email is unavailable- added by lauriemoye (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-04-07 ramack StatusIn Progress Fixed
        Open/ClosedOpen Closed
        ReleaseNone adler
    2016-01-05 ramack Summarydeferred make fails to compile subclassing of ARRAY fails to compile due to "create {like Current}"
    2015-12-31 ramack StatusConfirmed In Progress
        Fixed ReleaseNone bell
    2015-12-30 ramack Assigned toNone ramack
    2015-12-30 ramack CategorySmartEiffel Kernel libraries
        Priority5 - Normal 7 - High
        StatusNone Confirmed
        Planned ReleaseNone bell
    2015-02-16 lauriemoye Attached File- Added a.e, #33104
        Attached File- Added test.e, #33105
        Attached File- Added d.e, #33106
        Attached File- Added test.log, #33107

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code