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: nob...@puremagic.com
        ReportedBy: lutger.blijdest...@gmail.com


--- Comment #0 from Lutger <lutger.blijdest...@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: -------

Reply via email to