May 06, 2007 [Issue 1217] New: Dollar ($) seen as non-constant expression in non-char[] array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1217 Summary: Dollar ($) seen as non-constant expression in non-char[] array Product: D Version: 1.014 Platform: PC OS/Version: Linux Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: reiner.pope@gmail.com The following code fails to compile: const ulong[] A = ([1LU])[0..$]; with error message slice.d(1): Error: non-constant expression [1LU][0u..__dollar] However, the following similar code *does* compile: const char[] A = "a"[0..$]; -- |
July 01, 2007 [Issue 1217] Dollar ($) seen as non-constant expression in non-char[] array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1217 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla@digitalmars.com 2007-07-01 14:01 ------- Fixed DMD 1.018 and DMD 2.002 -- |
Copyright © 1999-2021 by the D Language Foundation