Bug 16439 – Non-typesafe variadic functions can never be @safe

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-08-28T09:51:00Z
Last change time
2016-10-01T11:45:59Z
Keywords
safe, spec
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2016-08-28T09:51:28Z
Variadic functions: http://dlang.org/spec/function.html#variadic C style and D style variadic functions should never be markable as @safe: extern (C) @safe int foo1(int i, int j, ...); // C style - Error extern (D) @safe int foo2(int i, int j, ...); // D style - Error Typesafe variadic functions are ok: @safe int sum(int[] ar ...)
Comment #1 by bugzilla — 2016-08-28T10:43:50Z
Comment #2 by github-bugzilla — 2016-08-28T14:26:57Z
Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/d78d5fd8f2796e55cd0e3eb35754d886c3f3b25a fix Issue 16439 - Non-typesafe variadic functions can never be @safe https://github.com/dlang/dlang.org/commit/81562ee053539859402728f70ca1d36cc1f5008b Merge pull request #1446 from WalterBright/variadic-safe fix Issue 16439 - Non-typesafe variadic functions can never be @safe
Comment #3 by bugzilla — 2016-08-28T19:49:21Z
Reopened to await compiler implementation.
Comment #4 by github-bugzilla — 2016-10-01T11:45:50Z
Commits pushed to stable at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/d78d5fd8f2796e55cd0e3eb35754d886c3f3b25a fix Issue 16439 - Non-typesafe variadic functions can never be @safe https://github.com/dlang/dlang.org/commit/81562ee053539859402728f70ca1d36cc1f5008b Merge pull request #1446 from WalterBright/variadic-safe