digitalmars.D.bugs - [Issue 1108] New: Indexing an int[] not evaluatable at compile time
- d-bugmail puremagic.com (26/26) Apr 07 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1108
- d-bugmail puremagic.com (9/9) Apr 11 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1108
- d-bugmail puremagic.com (6/6) Apr 25 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1108
- d-bugmail puremagic.com (6/6) Apr 25 2007 http://d.puremagic.com/issues/show_bug.cgi?id=1108
http://d.puremagic.com/issues/show_bug.cgi?id=1108 Summary: Indexing an int[] not evaluatable at compile time Product: D Version: 1.010 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 CTFE cannot evaluate: int Index() { int[] data = [1]; return data[0]; } void main() { static assert(Index() == 1); } ctfebug.d(9): Error: cannot evaluate Index() at compile time ctfebug.d(9): static assert (Index() == 1) is not evaluatable at compile time --
Apr 07 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1108 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #1 from bugzilla digitalmars.com 2007-04-11 22:03 ------- Fixed dmd 1.011 --
Apr 11 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1108 ------- Comment #2 from thomas-dloop kuehne.cn 2007-04-25 12:58 ------- Added to DStress as http://dstress.kuehne.cn/compile/i/interpret_05_A.d http://dstress.kuehne.cn/compile/i/interpret_05_B.d --
Apr 25 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1108 ------- Comment #3 from thomas-dloop kuehne.cn 2007-04-25 14:15 ------- Added to DStress as http://dstress.kuehne.cn/compile/i/interpret_05_A.d http://dstress.kuehne.cn/compile/i/interpret_05_B.d --
Apr 25 2007