www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4792] New: Assertion in shift right operations.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4792

           Summary: Assertion in shift right operations.
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ibuclaw ubuntu.com



Both examples:

int main()
{
    return cast(int)(.0>>0);
}


int main()
{
    return cast(int)(.0>>>0);
}


result in an ICE in the compiler. Whereas


int main()
{
    return cast(int)(.0<<0);
}

is handled perfectly fine.

As this is not supposed to be compilable, I assume that the error type isn't
being handled as it should be.

Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 03 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4792


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 4751 ***

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