Segfault when using SysTime
knommad
spam_D at asylum.id.au
Fri Nov 4 01:23:28 PDT 2011
Hi,
(I'm not sure whether I should be posting these here...apologies if this is
inappropriate).
Test case: (test.d)
import std.datetime;
import std.stdio;
void main()
{
// SysTime is a struct that should be default initialised
SysTime unInitialisedTime;
// Will segfault on this next line...
writeln("Time is: ", unInitialisedTime );
writeln("ending now...");
}
Compiled with dmd 2.056: dmd -wi -oftest test.d.
Result:
Segmentation Fault.
I did attempt to delve into the intricacies of the std.datetime library, but
understanding the techniques used is currently beyond my skill level.
Obviously, something is not being initialised properly?
regards,
ted
--
Experience is simply the name we give our mistakes.
-- Oscar Wilde
More information about the Digitalmars-d
mailing list