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; }
Comment #1 by thomas-dloop — 2007-02-26T05:37:17Z
Comment #2 by tknott — 2007-03-20T16:04:40Z
*** Bug 1056 has been marked as a duplicate of this bug. ***
Comment #3 by tknott — 2007-03-20T16:09:20Z
*** Bug 1070 has been marked as a duplicate of this bug. ***
Comment #4 by bugzilla — 2007-04-20T14:33:09Z
Works in DMD 1.013