Bug 8370 – invalid deprecation error with -release -inline -noboundscheck

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2012-07-10T11:59:00Z
Last change time
2014-08-21T18:21:59Z
Keywords
rejects-valid
Assigned to
nobody
Creator
timon.gehr

Comments

Comment #0 by timon.gehr — 2012-07-10T11:59:34Z
DMD 2.059: $ echo ' import std.mmfile; // no symbol from there is used import std.range, std.algorithm, std.conv; void main(){[1,2,3].map!(n=>n.to!string());} ' > source.d $ dmd source.d $ dmd -release -inline -noboundscheck source.d /usr/include/x86_64-linux-gnu/dmd/phobos/std/datetime.d(29600): Error: variable std.path.sep is deprecated /usr/include/x86_64-linux-gnu/dmd/phobos/std/datetime.d(29601): Error: variable std.path.sep is deprecated /usr/include/x86_64-linux-gnu/dmd/phobos/std/path.d(2715): Error: alias std.path.onOutOfMemoryError is deprecated Removing any of the flags makes the code compile.
Comment #1 by yebblies — 2013-11-26T06:36:37Z
Works for me, but that could be because of phobos changes.
Comment #2 by saurabh.das — 2014-04-08T11:23:17Z
Similar error: echo ' import std.mmfile; ' > test.d dmd -c -de -release -inline -noboundscheck test.d /usr/include/dmd/phobos/std/mmfile.d(344): Deprecation: alias core.sys.posix.sys.mman.MAP_ANON is deprecated - Please use core.sys.linux.sys.mman for non-POSIX extensions Removing any of '-release', '-inline' or '-noboundscheck' allows the code to compile. [Using DMD64 D Compiler v2.065 on Linux]
Comment #3 by github-bugzilla — 2014-07-07T01:55:59Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/e05a7a12309863a9051d0f7dc294772330322881 Issue 8370 - Fix deprecated message during Linux Phobos build. This change fixes Linux builds only. Other Posix based OS's will still use the deprecated alias from the Posix module. (This is the same behavior as the garbage collector module.) https://github.com/D-Programming-Language/phobos/commit/44ffee82143d5577c0c8f3885dfeb376fe620a52 Merge pull request #2295 from adamsaka/issue_8370 Issue 8370 - Fix deprecated message during Linux Phobos build.
Comment #4 by github-bugzilla — 2014-07-08T01:15:07Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/a4188f48f2f4db758e6264cdda9d7bc46b03f8c3 Merge pull request #2295 from adamsaka/issue_8370 Issue 8370 - Fix deprecated message during Linux Phobos build.
Comment #5 by github-bugzilla — 2014-08-21T18:21:59Z