Summary: array-vararg with pointer type not working in safe
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Michel Fortin <> 2011-07-09 
22:10:27 EDT ---
This code doesn't work in @safe mode because of some compiler-generated code
not being @safe:


void foo(string[] val...) {

void main() {
    foo("a", "b"); // Error: variable voidinitvararg.main.__arrayArg3 void
initializers for pointers not allowed in safe functions

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to