Bug 998 – Crash in compile-time functions with pragma(msg,...)
Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-02-22T23:06:00Z
Last change time
2014-02-16T15:23:16Z
Assigned to
bugzilla
Creator
tknott
Comments
Comment #0 by tknott — 2007-02-22T23:06:26Z
The following code causes DMD 1.007 to crash hard without an error message. Commenting out the pragma in test() makes it work.
void main()
{
static auto x = test();
}
int test()
{
pragma(msg, "Crash!");
return 2;
}