[Issue 3615] New: returning .idup of local static array doesn't work in ctfe

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 14 10:42:38 PST 2009


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

           Summary: returning .idup of local static array doesn't work in
                    ctfe
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: lutger.blijdestijn at gmail.com


--- Comment #0 from Lutger <lutger.blijdestijn at gmail.com> 2009-12-14 10:42:37 PST ---
string foo()
{
    char[1] d;
    d[0] = 'd';
    return d.idup;
}

pragma(msg, foo()); // "Error: cannot evaluate foo() at compile time"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list