www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5062] New: Problem with a string slicing

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5062

           Summary: Problem with a string slicing
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2010-10-16 09:46:08 PDT ---
With DMD 2.049 this program:

void main() {
    int x = 1;
    auto s = "abcdefg"[x .. $];
}


Produces this output:

OPTLINK (R) for Win32  Release 8.00.8
Copyright (C) Digital Mars 1989-2010  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
test2.obj(test2) 
 Error 42: Symbol Undefined _D5test24mainFZv8__dollarxk


I think this problem was not present in some D1 compiler.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 16 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5062


kennytm gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kennytm gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from kennytm gmail.com 2011-06-30 10:25:49 PDT ---
*** This issue has been marked as a duplicate of issue 1471 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 30 2011