[Issue 1002] New: debug statement crashes at compile-time function execution
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 23 01:20:07 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1002
Summary: debug statement crashes at compile-time function
execution
Product: D
Version: 1.007
Platform: PC
OS/Version: Windows
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: hasan.aljudy at gmail.com
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" );
}
---------------------
--
More information about the Digitalmars-d-bugs
mailing list