← Back to index
|
Original Bugzilla link
Bug 9918 – Strange error: void initializers for pointers not allowed in safe functions
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-11T04:30:00Z
Last change time
2013-08-04T05:45:07Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2013-04-11T04:30:46Z
import std.path; string joinPath(C)(const(C[])[] paths...) @safe pure { return buildNormalizedPath(buildPath(paths)); } void main() { joinPath("foo", "bar"); } Using 2.063 git-head: test.d(7): Error: variable test.joinPath!(char).joinPath.__arrayArg2219 void initializers for pointers not allowed in safe functions
Comment #1
by bugzilla — 2013-08-04T05:45:07Z
*** This issue has been marked as a duplicate of issue 6405 ***