www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1867] New: lazy adds spurious const qualifier

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: andrei 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]);
}


-- 
Feb 24 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1867


andrei metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




-- 
Mar 06 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1867






Fixed dmd 2.012


-- 
Mar 06 2008