[Issue 10279] New: Calling a typesafe variadic @trusted function from an @safe function results in an error.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 6 00:03:17 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10279
Summary: Calling a typesafe variadic @trusted function from an
@safe function results in an error.
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: tcdknutson at gmail.com
--- Comment #0 from Dylan <tcdknutson at gmail.com> 2013-06-06 00:03:13 PDT ---
The following code will not compile, however it seems like it's valid:
ulong foo(string[] strs...) @trusted {
return strs.length;
}
void bar() @safe {
foo("asdf");
}
void main() {}
The error "Error: variable maybebug.bar.__arrayArg4 void initializers for
pointers not allowed in safe functions" will be emitted.
DMD version: 2.064, Windows x64
and DMD version 2.063 on Linux x64
--
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