D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4792 - Assertion in shift right operations.
Summary: Assertion in shift right operations.
Status: RESOLVED DUPLICATE of issue 4751
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2010-09-03 02:19 UTC by Iain Buclaw
Modified: 2010-09-03 11:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2010-09-03 02:19:14 UTC
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
Comment 1 Don 2010-09-03 11:38:15 UTC

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