Thread overview |
---|
May 06, 2007 [Issue 1216] New: Concatenation gives 'non-constant expression' outside CTFE | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1216 Summary: Concatenation gives 'non-constant expression' outside CTFE 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: const ulong[] A = [1UL]; const ulong[] B = A ~ [1UL]; gives: concat.d(2): Error: non-constant expression A ~ [1LU] But changing it to the following works: const ulong[] A = [1UL]; const ulong[] B = getConcat(A, [1UL]); ulong[] getConcat(ulong[] a, ulong[] b) { return a ~ b; } -- |
May 06, 2007 [Issue 1216] Concatenation gives 'non-constant expression' outside CTFE | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1216 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #1 from smjg@iname.com 2007-05-06 18:44 ------- Could be related to issue 963.... -- |
July 01, 2007 [Issue 1216] Concatenation gives 'non-constant expression' outside CTFE | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1216 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #2 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