www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13188] New: safe std.array.array of an array of Typedef

https://issues.dlang.org/show_bug.cgi?id=13188

          Issue ID: 13188
           Summary:  safe std.array.array of an array of Typedef
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: bearophile_hugs eml.cc

void main()  safe {
    import std.typecons: Typedef;
    import std.array: array;
    [Typedef!int(1)].array;
}


DMD 2.066beta4 gives:

test.d(4,21): Error: safe function 'D main' cannot call system function
'std.array.array!(Typedef!(int, 0, null)[]).array'

--
Jul 22 2014