[Issue 1867] New: lazy adds spurious const qualifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 24 15:43:50 PST 2008


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

           Summary: lazy adds spurious const qualifier
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: andrei at metalanguage.com


The following code does not compile and it should:

T foo(T)(lazy T value)
{
    return value;
}

void main()
{
    foo(new float[1]);
}


-- 



More information about the Digitalmars-d-bugs mailing list