www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 8370] New: invalid deprecation error with -release -inline -noboundscheck

http://d.puremagic.com/issues/show_bug.cgi?id=8370

           Summary: invalid deprecation error with -release -inline
                    -noboundscheck
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: timon.gehr gmx.ch



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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 10 2012