5062 – Problem with a string slicing

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5062 - Problem with a string slicing
Summary: Problem with a string slicing
Status: RESOLVED DUPLICATE of issue 1471
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: No Owner
URL:
Keywords: rejects-valid
Depends on:
Blocks:
Reported: 2010年10月16日 09:46 UTC by bearophile_hugs
Modified: 2011年06月30日 10:25 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010年10月16日 09:46:08 UTC
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.
Comment 1 kennytm 2011年06月30日 10:25:49 UTC
*** This issue has been marked as a duplicate of issue 1471 ***


AltStyle によって変換されたページ (->オリジナル) /