June 15, 2007 [Issue 1265] New: Const string array as parameter segfaults CTFE mixin | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1265 Summary: Const string array as parameter segfaults CTFE mixin Product: D Version: 1.014 Platform: PC OS/Version: Linux Status: NEW Keywords: ice-on-valid-code Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: paching@gmail.com 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)); -- |
June 16, 2007 [Issue 1265] Const string array as parameter segfaults CTFE mixin | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1265 paching@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from paching@gmail.com 2007-06-16 17:02 ------- Sorry, my mistake. Looks like my build setup was actually using an older version of GDC, eheh... -- |
Copyright © 1999-2021 by the D Language Foundation