www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Problem with dmd2.059.zip

reply Ed McCardell <edmccard hotmail.com> writes:
The versions of std.datetime and std.path in the 2.059 zip file don't 
have the latest fixes that take care of switching from the deprecated 
std.path.sep and undeprecating std.path.onOutOfMemoryError.

Compiling this simple program:

   import std.datetime;

   void main() {}

gives an error when using "-inline -release -noboundscheck"

std/datetime.d(29600): Error: variable std.path.sep is deprecated
std/datetime.d(29601): Error: variable std.path.sep is deprecated
std/path.d(2715): Error: alias std.path.onOutOfMemoryError is deprecated

(Oddly enough, it compiles without error with any other combination of 
those three options.)

Since it's fixed in the git repo, and can be worked around using the -d 
switch, is it worth opening a bug report?
Apr 16 2012
parent Somedude <lovelydear mailmetrash.com> writes:
Le 16/04/2012 12:01, Ed McCardell a écrit :
 The versions of std.datetime and std.path in the 2.059 zip file don't
 have the latest fixes that take care of switching from the deprecated
 std.path.sep and undeprecating std.path.onOutOfMemoryError.
 
 Compiling this simple program:
 
   import std.datetime;
 
   void main() {}
 
 gives an error when using "-inline -release -noboundscheck"
 
 std/datetime.d(29600): Error: variable std.path.sep is deprecated
 std/datetime.d(29601): Error: variable std.path.sep is deprecated
 std/path.d(2715): Error: alias std.path.onOutOfMemoryError is deprecated
 
 (Oddly enough, it compiles without error with any other combination of
 those three options.)
 
 Since it's fixed in the git repo, and can be worked around using the -d
 switch, is it worth opening a bug report?

2.059 looks broken indeed, as attested by http://forum.dlang.org/post/mailman.1767.1334498182.4860.digitalmars-d-learn puremagic.com
Apr 16 2012