[Issue 1768] CTFE: cant ~= an array literal to an unitinitialized array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 16 00:13:09 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1768
samukha at voliacable.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
------- Comment #3 from samukha at voliacable.com 2008-06-16 02:13 -------
Please recheck. Both compilers fail for me. Other people was having the issue
too.
dmd 1.030:
char [] foo()
{
char [][][] c;
c ~= ["abc", "def"]; // Error: cannot eval at compile time
return null;
}
const xx = foo();
dmd 2.014:
char [] foo()
{
string[][] c;
c ~= ["abc", "def"]; // Error: cannot eval at compile time
return null;
}
const xx = foo();
--
More information about the Digitalmars-d-bugs
mailing list