[Issue 2376] New: CTFE fails on array literal of array literals of chars

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 27 04:11:15 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2376

           Summary: CTFE fails on array literal of array literals of chars
           Product: D
           Version: 2.019
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: samukha at voliacable.com


string foo(string[] ss)
{
    string r;
    r ~= ss[0]; // problem here
    return r;
}

enum r = foo([['c'], ['d']]);
----
cannot evaluate foo([['c'],['d']]) at compile time


-- 



More information about the Digitalmars-d-bugs mailing list