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

           Summary: Calling a typesafe variadic @trusted function from an
                    @safe function results in an error.
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Dylan <[email protected]> 2013-06-06 00:03:13 PDT ---
The following code will not compile, however it seems like it's valid: 

ulong foo(string[] strs...) @trusted {
    return strs.length;
}

void bar() @safe {
    foo("asdf");
}


void main() {}

The error "Error: variable maybebug.bar.__arrayArg4 void initializers for
pointers not allowed in safe functions" will be emitted. 

DMD version: 2.064, Windows x64
and DMD version 2.063 on Linux x64

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

Reply via email to