[Issue 998] New: Crash in compile-time functions with pragma(msg, ...)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 22 21:06:34 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=998
Summary: Crash in compile-time functions with pragma(msg,...)
Product: D
Version: 1.007
Platform: PC
OS/Version: Windows
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: tknott at gmail.com
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;
}
--
More information about the Digitalmars-d-bugs
mailing list