← Back to index
|
Original Bugzilla link
Bug 1265 – Const string array as parameter segfaults CTFE mixin
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2007-06-15T02:28:00Z
Last change time
2014-02-16T15:21:53Z
Keywords
ice-on-valid-code
Assigned to
bugzilla
Creator
paching
Comments
Comment #0
by paching — 2007-06-15T02:28:45Z
char[] makeIntAttrs(char[][] attrs) { char[] code; // This foreach seems to crash it... foreach(char[] attr; attrs) { code ~= "int " ~ attr ~ ";"; } return code; } const char[][] attrNames = ["foo", "bar"]; mixin(makeIntAttrs(attrNames));
Comment #1
by paching — 2007-06-16T17:02:42Z
Sorry, my mistake. Looks like my build setup was actually using an older version of GDC, eheh...