[Issue 7709] Segfault when trying to use any property of an AA, which is the return type of a CTFE function with inout parameters.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 15 03:35:21 PDT 2012


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



--- Comment #2 from kennytm at gmail.com 2012-03-15 03:35:33 PDT ---
(In reply to comment #1)
> Duplicate of bug 7602?

I don't think so (at least on the surface). This variant of 7602 works (as
described in 7602's title):
--------------------------------------
string[] test7602b()
{
    int[string] array = ["2": 3];
    return array.keys;
}
enum str = test();
--------------------------------------

But this variant of 7709 fails:
--------------------------------------
inout(int[int]) test7709c(inout(int) bb)
{
    int[int] arr = [1: 2];
    arr.keys;
    return null;
}
enum str = test7709c(2);
--------------------------------------

-- 
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