Bug 17829 – core.stdc.errno does not work with -betterC

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-09-15T08:32:45Z
Last change time
2017-10-16T09:57:18Z
Keywords
betterC
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2017-09-15T08:32:45Z
https://github.com/dlang/druntime/blob/master/src/core/stdc/errno.d#L31 It references functions getErrno() and setErrno() which are in the druntime library. -betterC does not link in druntime.
Comment #1 by bugzilla — 2017-09-15T23:43:24Z
Comment #2 by github-bugzilla — 2017-09-29T20:45:49Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/04795c6488943e506150a1da2331cfbcfabb19b1 fix Issue 17829 - core.stdc.errno does not work with -betterC https://github.com/dlang/druntime/commit/7326110718d88f84cc9f3f4cf86b12cc490fe24d Merge pull request #1917 from WalterBright/fix17829 fix Issue 17829 - core.stdc.errno does not work with -betterC
Comment #3 by github-bugzilla — 2017-10-16T09:57:18Z
Commits pushed to stable at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/04795c6488943e506150a1da2331cfbcfabb19b1 fix Issue 17829 - core.stdc.errno does not work with -betterC https://github.com/dlang/druntime/commit/7326110718d88f84cc9f3f4cf86b12cc490fe24d Merge pull request #1917 from WalterBright/fix17829