Thread overview | ||||||||
---|---|---|---|---|---|---|---|---|
|
July 10, 2011 [Issue 6279] New: array-vararg with pointer type not working in safe code | ||||
---|---|---|---|---|
| ||||
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: nobody@puremagic.com ReportedBy: michel.fortin@michelf.com --- Comment #0 from Michel Fortin <michel.fortin@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: ------- |
July 10, 2011 [Issue 6279] Regression(2.054 beta): array-vararg with pointer type not working in safe code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin | http://d.puremagic.com/issues/show_bug.cgi?id=6279 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid CC| |yebblies@gmail.com Platform|Other |All Summary|array-vararg with pointer |Regression(2.054 beta): |type not working in safe |array-vararg with pointer |code |type not working in safe | |code OS/Version|Mac OS X |All Severity|normal |regression -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2011 [Issue 6279] Regression(2.054 beta): array-vararg with pointer type not working in safe code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin | http://d.puremagic.com/issues/show_bug.cgi?id=6279 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #1 from yebblies <yebblies@gmail.com> 2011-07-10 16:14:15 EST --- https://github.com/D-Programming-Language/dmd/pull/226 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 10, 2011 [Issue 6279] Regression(2.054 beta): array-vararg with pointer type not working in safe code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin | http://d.puremagic.com/issues/show_bug.cgi?id=6279 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from yebblies <yebblies@gmail.com> 2011-07-11 04:17:42 EST --- https://github.com/D-Programming-Language/dmd/commit/7aeb7d284d8bcf5edee674fe57af3ae3a26d6afa -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation