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