Bug 1070 – can't use pragma to debug CTFE. DMD AV

Status
RESOLVED
Resolution
DUPLICATE
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-03-20T01:35:00Z
Last change time
2014-02-16T15:22:46Z
Assigned to
bugzilla
Creator
davidl

Comments

Comment #0 by davidl — 2007-03-20T01:35:04Z
static char[] bug(char[] string) { pragma(msg,string); return ""; } void main() { mixin(bug("asdfa")); } u can't use pragma to debug the CTFE. though it's a feature request, yet dmd AV here.
Comment #1 by matti.niemenmaa+dbugzilla — 2007-03-20T04:49:36Z
*** This bug has been marked as a duplicate of 1056 ***
Comment #2 by davidl — 2007-03-20T07:46:19Z
i don't agree it's a duplicate bug. At least it's a minor enhancement. cause it try to pragma the compile-time determinable string
Comment #3 by tknott — 2007-03-20T16:09:20Z
I also think this is a duplicate. At the very least, if you want to reopen this bug again as an enhancement make sure to also change the severity to reflect that, and I would imagine that this would start working for "compile-time determinable strings" once bug 998 is fixed so also make it dependent on bug 998. *** This bug has been marked as a duplicate of 998 ***
Comment #4 by davidl — 2007-03-20T21:14:34Z
OK, leave it alone till new version of DMD released i think it's another test case of the other bugs u guys think it's a duplicate of. coz it's inside a compile-time func , and pragma the compile time func's vars and args