[Issue 7602] [CTFE] Segmentation fault when using array.keys on a null AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 29 00:44:45 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7602


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au
            Summary|[CTFE] Segmentation fault   |[CTFE] Segmentation fault
                   |when using array.keys       |when using array.keys on a
                   |                            |null AA


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2012-02-29 00:44:42 PST ---
It's because in interpretAA_keys, the type is missing from NullExp.
That's simple. But the problem is, that function is returning the wrong type
(the spec says it should return a dynamic array, it returns a static one).
If I change it to the correct type, then my inlining hack fails.
The solution is to add yet another hack to CTFE, to work around the hopelessly
broken D2 AAs.
Yet another reason to roll the implementation back.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list