Bug 1002 – debug statement crashes at compile-time function execution

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-02-23T03:20:00Z
Last change time
2014-02-16T15:26:12Z
Assigned to
bugzilla
Creator
hasan.aljudy

Comments

Comment #0 by hasan.aljudy — 2007-02-23T03:20:00Z
debug statement inside a function will crash the compiler if it tries to execute the function at compile time. sample code: --------------- dchar[] testd( dchar[] input ) { debug int x = 10; // take this line off and it won't crash, or just take off the debug specification return "my"; } void main() { static x = testd( "hello" ); } ---------------------
Comment #1 by thomas-dloop — 2007-02-26T05:37:42Z
Comment #2 by bugzilla — 2007-04-20T14:36:03Z
Works in DMD 1.013