|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.bugs - [Issue 1108] New: Indexing an int[] not evaluatable at compile time
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
|