[Issue 9918] New: Strang error: void initializers for pointers not allowed in safe functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Apr 11 04:30:48 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9918
Summary: Strang error: void initializers for pointers not
allowed in safe functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-04-11 04:30:46 PDT ---
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
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list