http://d.puremagic.com/issues/show_bug.cgi?id=6279
Summary: array-vararg with pointer type not working in safe code Product: D Version: D2 Platform: Other OS/Version: Mac OS X Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: michel.for...@michelf.com --- Comment #0 from Michel Fortin <michel.for...@michelf.com> 2011-07-09 22:10:27 EDT --- This code doesn't work in @safe mode because of some compiler-generated code not being @safe: @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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------